Best way to load images into textures?

Started by roadkillguy, October 24, 2011, 00:22:29

Previous topic - Next topic

roadkillguy

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.

kappa

Have a look at the LWJGL wiki, there are links and tutorials there to libraries that can do this for you (e.g. Slick-Utils or PNGDecoder).

broumbroum

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)