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
}
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
}
To copy to clipboard, switch view to plain text mode
I want to apply first two transforms to text as well as rest of drawing. Is it possible?
Bookmarks