LWJGL Forum

Programming => General Java Game Development => Topic started by: ScottDC on April 17, 2005, 10:38:01

Title: Extracting tiles from image
Post by: ScottDC 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
Title: Extracting tiles from image
Post by: WiESi on April 17, 2005, 11:46:10
Either you can use glTexSubImage or you simple use glTexCoord2f and glVertex2i in the appropriate way.

WiESi