Hi all,
I am trying to draw an OpenGL quad at the very end of fgRenderFrame in
main.cxx, just before the glutSwapBuffers by doing:

        glMatrixMode(GL_MODELVIEW);
        glPushMatrix();
        glLoadIdentity();

        glDisable( GL_FOG );
        glDisable( GL_DEPTH_TEST );
        glDisable( GL_LIGHTING );

        glDisable( GL_TEXTURE_2D );
        glColor3f( 0.9, 0.4, 0.2 );
        glBegin(GL_QUADS);
        glTexCoord2f(0,0);
        glVertex3f(0,0, 0);
        glTexCoord2f(1,0);
        glVertex3f(1,0, 0);
        glTexCoord2f(1,1);
        glVertex3f(1,1, 0);
        glTexCoord2f(0,1);
        glVertex3f(0,1, 0);
        glEnd();

        glPopMatrix();

This has worked on a few occasions, but not all the time.

What I really want is to be able to draw an overlay in 3D space at the end of
the draw loop. I realise that Flightgear is using plib ssgnode rendering stuff,
but I don't know plib and really only want to hack this in for now.

How can I render some OpenGL prims at the end of the draw loop?

many thanks,
Richard.

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to