glcanvas & orthographic projection

Dan Gutchess (
Wed, 19 Feb 1997 02:21:12 -0500 (EST)

To subscribers of the xforms list from Dan Gutchess <> :

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);

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?


| Dan Gutchess | Boston University CS Department |
| | |

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: