Archived

This topic is now archived and is closed to further replies.

Psycho1

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

Recommended Posts

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

Share this post


Link to post
Share on other sites