Disposing of textures...or something
I was messing around with the code in lesson 23(the one with the texture mapped room) and anything else I tried to draw after drawing the room all appears as the same colour.I thought that if I put "glColor3f(1.0,1.0,1.0);" before I draw the object it should draw it white but it makes no difference, everything comes out the one colour. I thought maybe I need to get rid of the textures in memory but I don''t know how to specifically. If this makes sense and anyone knows whats wrong, pleeze help,
Joe
glEnable(GL_TEXTURE_2D);
//...draw textured stuff
glDisable(GL_TEXTURE_2D);
//..draw untextured stuff
--------------------------
Those who dance are considered insane by those who cannot hear the music.
//...draw textured stuff
glDisable(GL_TEXTURE_2D);
//..draw untextured stuff
--------------------------
Those who dance are considered insane by those who cannot hear the music.
Those who dance are considered insane by those who cannot hear the music.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement