Jan Barglowski (jan++at++archimedes.vislab.navy.mil)
Tue, 18 Jun 1996 16:32:40 -0700 (PDT)
--- /* Open GL commands. */ gluOrtho2D(-640.0, 640.0, -512.0, 512.0); glMatrixMode(GL_MODELVIEW); pfPushIdentMatrix(); pfPushState(); pfBasicState(); pfDisable(PFEN_TEXTURE); pfDisable(PFEN_LIGHTING); pfDisable(PFEN_FOG);/* This works. */ /* glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); */
/* Draw a red box in the middle of the screen. */ glColor3f(1.0, 0.0, 0.0); glBegin(GL_POLYGON); glVertex2f(-10.0, 10.0); glVertex2f(10.0, 10.0); glVertex2f(10.0, -10.0); glVertex2f(-10.0, -10.0); glEnd(); glFlush();
/* Return original state. */ pfPopState(); pfPopMatrix();
---Any pointers or (correct) code examples would be appreciated! Also, any way to display text in OpenGL? My OpenGL book has no examples of this :-(
Thank you,
jan
-- Jan Anthony Barglowski jan++at++vislab.navy.mil Animation & Computer Graphics http://www1.ridgecrest.ca.us/~jan Naval Air Warfare Center, China Lake (619) 927-1057 ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:01 PDT