PDA

View Full Version : an image loading library



Jormungand
07-08-2003, 12:03 PM
Does anyone of you know a good library for loading jpg files and maybe also other formats for use as textures in OpenGL?

Azrael
07-08-2003, 12:23 PM
try the glBMP written by Jason Allen (http://delphigl.cfxweb.net) . it's available for delphi and c++.

see you,
Azrael.

Punchey
07-08-2003, 03:42 PM
I can recommend DevIL (formerly OpenIL) (http://openil.sourceforge.net)

Although DevIL has been discontinued, it is quite good and can send almost any kind of image file straight to an OpenGL texture with only a couple of lines of setup code and then a single line of code to open and load the image straight to a texture.

Another great library I'd recommend is NexGenIPL (www.binary-technologies.com). It doesn't go straight to OpenGL textures, but it does support almost any image format you could possibly want! And it's not hard to write up your own bit of code to take the data from this library and send it to OpenGL to build a texture.

Both of these libraries are totally free too, and I highly recommend either of them!

Jormungand
07-09-2003, 01:25 AM
Well thanx very much for the good responces!!