1831
Graphics / Re: Slicing/extracting tiles from a grid of tiles
« on: August 11, 2012, 05:30:25 pm »
That's great and that's why tilesheets are good but why do you 'extract' them into single texture each at runtime instead of using sf::VertexArray or sf::Sprite::setTextureRect ?
Load your texture once and then make every sprite/your one huge vertex array use this texture with proper rectangle/coords.
Load your texture once and then make every sprite/your one huge vertex array use this texture with proper rectangle/coords.