LWJGL Forum

Programming => OpenGL => Topic started by: roadkillguy on October 24, 2011, 00:22:29

Title: Best way to load images into textures?
Post by: roadkillguy on October 24, 2011, 00:22:29
Hi, I was wondering if there was a quick function that's able to take in a string (filename) and load the texture data from it.  Back in c++ I used SDL and SDL_Image to do this, but I'm not sure of the java equivalent.  Do I need to write my own parser, or is there a universal one already written?

Thanks.
Title: Re: Best way to load images into textures?
Post by: kappa on October 24, 2011, 08:55:15
Have a look at the LWJGL wiki (http://wiki.lwjgl.org), there are links and tutorials there to libraries that can do this for you (e.g. Slick-Utils or PNGDecoder).
Title: Re: Best way to load images into textures?
Post by: broumbroum on October 25, 2011, 14:35:53
Hi, you may also  consider using IOTexture.java provided by this LWJGL-RFE ("Request for Enhancement") release : http://lwjgl.org/forum/index.php/topic,4181.0.html .
best regards 8)