PDA

View Full Version : Help with textures



kaels
02-21-2003, 08: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.

Thanks

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

miko
02-22-2003, 02: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...