PDA

View Full Version : load images from file



06-22-2002, 03:14 PM
Is there a standard way of loading images from files in openGL? I havn't found any functions that do this. GLReadPixels reads from a pointer to image data, but how could this be used?

Are there any tutorials or anything that shows how its done? I just want to display 2d images read from file, in 24bit colour.

thanks.

dabeav
06-22-2002, 03:53 PM
Go to imagelib.org, its called devIL, its a opengl syntax image library. It will load ANY image format into an opengl texture image.

06-22-2002, 04:35 PM
Thank you,
devIL may be just what I need.