Hello Guest

Extracting tiles from image

  • 1 Replies
  • 7191 Views
Extracting tiles from image
« on: April 17, 2005, 10:38:01 »
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

*

Offline WiESi

  • **
  • 70
Extracting tiles from image
« Reply #1 on: April 17, 2005, 11:46:10 »
Either you can use glTexSubImage or you simple use glTexCoord2f and glVertex2i in the appropriate way.

WiESi