Hello, I am having trouble using orthographic projections with the
glcanvas. Although perspective projections using glFrustum() seem to
work, I can't seem to draw anything when I initialize with the following
code (in my expose event):
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0,w,0,h);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(0.375, 0.375, 0.0);
/* refresh */
idle_cb(0, 0);
I am new to Xforms and OpenGL, so I may be doing something stupid. Can
anyone help? If you have a working program that uses gluOrtho2D, could
you please send me a small sample?
Thanks!
+----------------------+--------------------------------------+
| Dan Gutchess | Boston University CS Department |
| dgutches@cs.bu.edu | http://acs2.bu.edu:8001/~dgutches/ |
+----------------------+--------------------------------------+
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/