load images from file

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.


Go to imagelib.org, its called devIL, its a opengl syntax image library. It will load ANY image format into an opengl texture image.

Thank you,
devIL may be just what I need.