glMatrixMode( GL_PROJECTION );
glLoadIdentity( );
glOrtho( -10.0, 10.0, -10.0, 10.0, -10.0, 10.0 );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity( );
glViewport( ( leftMarginWidth / 4.0 ), 0.0, ( leftMarginWidth / 4.0 ), winHeight );
glScissor( ( leftMarginWidth / 4.0 ), 0.0, ( leftMarginWidth / 4.0 ), winHeight );
mpQgl->qglColor( mLeftLabelColor );
glPushMatrix( );
mpQgl->renderText( 0.0, 0.0, 0.0, mLeftLabel );
glRotated( 90.0, 0.0, 0.0, 1.0 );
glPopMatrix( );
glMatrixMode( GL_PROJECTION );
glLoadIdentity( );
glOrtho( -10.0, 10.0, -10.0, 10.0, -10.0, 10.0 );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity( );
glViewport( ( leftMarginWidth / 4.0 ), 0.0, ( leftMarginWidth / 4.0 ), winHeight );
glScissor( ( leftMarginWidth / 4.0 ), 0.0, ( leftMarginWidth / 4.0 ), winHeight );
mpQgl->qglColor( mLeftLabelColor );
glPushMatrix( );
mpQgl->renderText( 0.0, 0.0, 0.0, mLeftLabel );
glRotated( 90.0, 0.0, 0.0, 1.0 );
glPopMatrix( );
To copy to clipboard, switch view to plain text mode
Bookmarks