Extracting tiles from image

Started by ScottDC, April 17, 2005, 10:38:01

Previous topic - Next topic

ScottDC

I've started development on a 2d tile game, and have all the tiles in one large image - from Tile Studio.

How do I extract each tile from the image?

I'm using and modifying some of classes from Space Invaders, mainly Texture and Sprite

Thanks

WiESi

Either you can use glTexSubImage or you simple use glTexCoord2f and glVertex2i in the appropriate way.

WiESi