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:

Qt Code:
  1. void paintGL() {
  2.  
  3. glTranslate3f ( ...... ); // Inputs come at runtime and may change
  4. glRotatef( .... ); // Inputs come at runtime and may change
  5.  
  6. renderText(x,y,z,"Text");
  7. //Rest drawing code here
  8.  
  9. }
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?