View Full Version : Help with textures

02-21-2003, 07:52 PM
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.


02-21-2003, 09:07 PM
please read nehe.geamedev.net lesson 10.
Look at fuction LoadGLTextures() and DrawGLScene(GLvoid)

02-22-2003, 01:36 AM
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 http://www.opengl.org/discussion_boards/ubb/smile.gif) btw jpegs aren't just the best for textures...