1
Graphics / Arbitrarily split an image?
« on: July 03, 2010, 12:45:45 am »
Thanks for the tip! Do you think it makes the most sense to look at implementation for sf::Sprite::SetSubRect, and modify the sf::Sprite class directly? This would require recompiling SFML, but it might be easier to access the underlying OpenGL texture data used in sf::Sprite.
Alternatively, should I create a subclass from sf::Sprite in my own code, and manipulate the texture coordinates used in sf::Sprite from there? I don't know if I should consider the possibility of committing this change, if it works well and is usable in a lot of scenarios.
Alternatively, should I create a subclass from sf::Sprite in my own code, and manipulate the texture coordinates used in sf::Sprite from there? I don't know if I should consider the possibility of committing this change, if it works well and is usable in a lot of scenarios.