Texture Font

  • Follow


Hi!
I'm using the FTGL Texture Font to draw text into an OpenGL scene.
If I terminate the texture area immediately calling 
glDisable(GL_TEXTURE_2D) the expected characters are quads.

glEnable(GL_TEXTURE_2D);
ft->Render("Texture Font");
glDisable(GL_TEXTURE_2D)

But if I omit glDisable or put it behind glFlush it works.

glEnable(GL_TEXTURE_2D);
ft->Render("Texture Font");
glFlush();
glDisable(GL_TEXTURE_2D);

I saw this sequence in the redbook too.
Please, can anybody explain that behavior?
Thanks, Jan.
0
Reply aiscape (8) 9/13/2004 9:15:51 AM


0 Replies
131 Views

(page loaded in 0.04 seconds)

Similiar Articles:













7/22/2012 11:25:52 PM


Reply: