PDA

View Full Version : draw window text / unload shader?



miroslav_karpis
12-07-2010, 04:24 PM
Please, I'm drawing with VBO/IBO some objects. In shader I'm changing their position and color.
Now I would like to draw some text (just simple on the window). I have found:

glRasterPos2f(0.0, 0.0);
glutBitmapCharacter(GLUT_BITMAP_9_BY_15, '2');

which does the trick when the shader program is not created. With the shader ON, not. Is it possible to somehow say 'now don't use shader program?' Or, what is the proper way, to do this?

thanks.

Tom Flynn
12-07-2010, 04:32 PM
glUseProgram(0);

miroslav_karpis
12-08-2010, 01:57 AM
millions of thanks!