John Rohlf (jrohlf++at++tubes)
Wed, 23 Aug 95 18:18:54 PDT
You need to do this through the GL:
3:
pfMatrix pmat, vmat;
/* save projection matrix */
mmode(MPROJECTION);
getmatrix(pmat);
I don't know what "clearing the projection matrix" means but if you want
a 2D overlay then call:
ortho2(0, 1, 0, 1) or,
ortho2(-.5, x-.5, -.5, y-.5) where x and y are the viewport pixel sizes
if you want to work in pixel dimensions
5:
/* save modelview matrix */
mmode(MVIEWING);
pushmatrix();
/* "clear" modelview matrix */
loadmatrix(identityMatrix);
7:
/* restore projection matrix */
mmode(MPROJECTION);
loadmatrix(pmat);
9:
/* restore modelview matrix */
popmatrix();
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:49 PDT