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?
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
just load up tga/bmp file with c++-class ifstream, cut the header and you got the pixels!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.