PDA

View Full Version : Loading up a texture



Cyclon
08-29-2002, 09:34 AM
Is it possible to load up a texture without glaux?

nexusone
08-29-2002, 09:54 AM
Yes, first glaux library is outdated, replaced by glut. Except glut does not have a texture loading function.

There are a few diffrent texture loading routines out there.
I like to use the TGA file format, but there are also BMP loaders also.

nehe.gamedev.net has some TGA and BMP loader code, also if you do a search you can find other sites with texture loader code.


Originally posted by Cyclon:
Is it possible to load up a texture without glaux?

08-29-2002, 10:07 AM
If you use GLFW, you get easy opengl window initialization and the newes version also has TGA texture loader.

Check: http://hem.passagen.se/opengl/glfw/

Cyclon
08-29-2002, 12:23 PM
Ah thanks very much

08-30-2002, 03:21 AM
just load up tga/bmp file with c++-class ifstream, cut the header and you got the pixels!