5 * Setup an identity projection such that glVertex(x,y) maps to
6 * window coordinate (x,y).
8 * Written by Brian Paul and in the public domain.
15 void IdentityProjection( GLint x
, GLint y
, GLsizei width
, GLsizei height
)
17 glViewport( x
, y
, width
, height
);
18 glMatrixMode( GL_PROJECTION
);
20 glOrtho( (GLdouble
) x
, (GLdouble
) y
,
21 (GLdouble
) width
, (GLdouble
) height
,
23 glMatrixMode( GL_MODELVIEW
);