- void GLwBeginProjection (Widget w)
- void GLwEndProjection (void)
-
The following code snippet selects perspective projection for the
workstation ws:
GLwBeginProjection (ws);
glFrustum (-1.0, 1.0, -1.0, 1.0, 1.0, 10.0);
GLwEndProjection ();
During redisplay, this will be executed as a display list with the
matrix mode set to GL_PROJECTION and an identity matrix on top of
the projection matrix stack.
- void GLwPostProjectionList (Widget w, GLuint p)
- void GLwPostProjectionMatrix (Widget w, GLdouble *m)
- void GLwPostCurrentProjection (Widget w)
- void GLwUnpostProjection (Widget w)
- GLuint GLwGetProjectionList (Widget w)
- int GLwGetProjectionMatrix (Widget w, GLdouble *m)
- void GLwSetFrustumProjection (Widget w, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near, GLdouble far)
- void GLwSetOrthoProjection (Widget w, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near, GLdouble far)
- void GLwBeginView (Widget w)
- void GLwEndView (void)
-
The following code snippet selects a view from the z-axis for the
workstation ws:
GLwBeginView (ws);
gluLookAt (0.0, 0.0, 3.0,
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
GLwEndView ();
During redisplay, this will be executed as a display list with the
matrix mode set to GL_MODELVIEW and an identity matrix on top of
the model view matrix stack.
- void GLwPostViewList (Widget w, GLuint v)
- void GLwPostViewMatrix (Widget w, GLdouble *m)
- void GLwPostCurrentView (Widget w)
- void GLwUnpostView (Widget w)
- GLuint GLwGetViewList (Widget w)
- int GLwGetViewMatrix (Widget w, GLdouble *m)
- void GLwSetPolarView (Widget w, GLdouble r, GLdouble theta, GLdouble phi)
- void GLwPostObject (Widget w, GLuint o)
-
posts object to w.
- void GLwUnpostObject (Widget w, GLuint o)
- void GLwUnpostAllObjects (Widget w)
- void GLwRedrawObjects (Widget w)
-
force a redraw of all objects posted to w.