PDA

View Full Version : Help with the textures



suzanne14
05-09-2009, 12:33 PM
Hi, I have drawn some figure & now I have to load some .bmp image & put that image on the surface of my figure. I really don't know how to do that :((((. I searched for some examples but most of all (at least the ones that were clear to me :D ) were with the use of GlAux library, but I do use Glut ... Basically I don't know how to load my image into memory (they use "auxDIBImageLoad") .... Please give me some link where I could find some complete example ....

zeoverlord
05-10-2009, 03:00 AM
The code on these pages (http://www.gamedev.net/community/forums/topic.asp?topic_id=275238) describe how to load bmps using the methods that use GlAux without actually needing GlAux.
Doesn't mean you should however, you should be using tga files they are way nicer for OpenGL.

suzanne14
05-19-2009, 11:15 AM
Thanks a lot, I included the 2 files in my project & everything worked fine :D