Help with textures

Hello all,

I would like to read in image files (i.e. gif, jpg, etc…) and use them as textures. I cannot seem to figure out how to do this in my OpenGL. Can anyone help or suggest anything? Keep in mind that I am fairly new to OpenGL.

Thanks

please read nehe.geamedev.net lesson 10.
Look at fuction LoadGLTextures() and DrawGLScene(GLvoid)

gl don’t handle image loading of any kind. you need to get raw data to memory some way yourself (try google and type something like jpeg loader ) btw jpegs aren’t just the best for textures…