qtUse
3rd September 2010, 14:55
I am taking tranformations on openGL models at runtime and I want to apply it on text printed by renderText(),
e.g. paintGL() looks like this:
void paintGL() {
glTranslate3f ( ...... ); // Inputs come at runtime and may change
glRotatef( .... ); // Inputs come at runtime and may change
renderText(x,y,z,"Text");
//Rest drawing code here
}
I want to apply first two transforms to text as well as rest of drawing. Is it possible?
e.g. paintGL() looks like this:
void paintGL() {
glTranslate3f ( ...... ); // Inputs come at runtime and may change
glRotatef( .... ); // Inputs come at runtime and may change
renderText(x,y,z,"Text");
//Rest drawing code here
}
I want to apply first two transforms to text as well as rest of drawing. Is it possible?