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.
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).
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)