Advertisement

Cant use textures and fonts at the same time? WHY!?

Started by October 31, 2001 06:20 PM
1 comment, last by Psycho1 23 years, 3 months ago
Well, when i have BuildFont() and glEnable(GL_TEXTURE_2D) in my program, the font isnt shown X_X Why!?
This can maybe sort out your problem. Try enabling and disabling the GL_TEXTURE_2D in your drawscene. for example:
DrawScene
{
glEnable(GL_TEXTURE_2D);
// Do the texturing and drawing of all vertexes and that stuff.
// when done with this, and right before you want to draw the
// fonts you enable GL_TEXTURE_2D

// we''re done drawing vertexes and stuff
glDisable(GL_TEXTURE_2D);
BuildFont();

return(0);
}

Maybe this help you, I''m not sure if this is the cause of your problem. anyways it''s worth a shot.


Kenneth Wilhelmsen
Download my little game project HERE
--------------------------
He who joyfully marches to music in rank and file has already earned my contempt. He has
been given a large brain by mistake, since for him the spinal cord would fully suffice. This
disgrace to civilization should be done away with at once. Heroism at command, senseless
brutality, deplorable love-of-country stance, how violently I hate all this, how despicable and ignoble war is; I would rather be torn to shreds than be a part of so base an action! It is my conviction that killing under the cloak of war is nothing but an act of murder
Advertisement
Thanks, that worked :B
FYI, cool lil game project :B

This topic is closed to new replies.

Advertisement