Original Post
I've been working on a simple little program.. it started out as me trying to make a class that read tga files.. well, I finished that, and now I've been trying to get fonts working. I used the tutorial at www.gametutorials.com to do it, it's pretty much the exact same at NeHe's... everything works just fine, except... my font, and my spinning cube are always the same color.
This is how the program works.. It shows a spinning cube. By pressing 1, 2, and 3, you can toggle on and off blending, lighting, and textures (in that order).
This is what the font looks like with no blending, lighting, or texturing enabled:
This is with blending, lighting, and textures:
See how the text I'm working on in the top left corner changes colors with the cube? Does anyone have any ideas how to change this? I've tried placing glColor3f() right in front of the glCallLists() and my DrawCube() functions... but they're always the same.
I'll post a link to my code, it might help.
http://xtc.sixstudios.com/x/main.cpp
http://xtc.sixstudios.com/x/main.h
http://xtc.sixstudios.com/x/texture.tga
http://xtc.sixstudios.com/x/GLTexture1.exe
Thanks in advance
(texture.tga must be in the same folder as GLTexture1.exe)
[edited by - Klutch on December 31, 2003 4:12:14 PM]
This is with blending, lighting, and textures:
See how the text I'm working on in the top left corner changes colors with the cube? Does anyone have any ideas how to change this? I've tried placing glColor3f() right in front of the glCallLists() and my DrawCube() functions... but they're always the same.
I'll post a link to my code, it might help.
http://xtc.sixstudios.com/x/main.cpp
http://xtc.sixstudios.com/x/main.h
http://xtc.sixstudios.com/x/texture.tga
http://xtc.sixstudios.com/x/GLTexture1.exe
Thanks in advance