Engine/src/freetype.cpp
inline void pushScreenCoordinateMatrix() {
	glPushAttrib(GL_TRANSFORM_BIT);
	GLint	viewport[4];
	glGetIntegerv(GL_VIEWPORT, viewport);
	glMatrixMode(GL_PROJECTION);
	glPushMatrix();
	glLoadIdentity();
	gluOrtho2D(viewport[0],viewport[2],viewport[1],viewport[3]);
	glPopAttrib();
}
/// A fairly straight forward function that pushes
/// a projection matrix that will make object world
/// coordinates identical to window coordinates.
A fairly straight forward function that pushes
a projection matrix that will make object world
coordinates identical to window coordinates.
A fairly straight forward function that pushes a projection matrix that will make object world coordinates identical to window coordinates .
inline void pushScreenCoordinateMatrix() {
	glPushAttrib(GL_TRANSFORM_BIT);
	GLint	viewport[4];
	glGetIntegerv(GL_VIEWPORT, viewport);
	glMatrixMode(GL_PROJECTION);
	glPushMatrix();
	glLoadIdentity();
	gluOrtho2D(viewport[0],viewport[2],viewport[1],viewport[3]);
	glPopAttrib();
}
inline void pushScreenCoordinateMatrix ( ) { glPushAttrib ( GL_TRANSFORM_BIT ) ; GLint viewport [ 4 ] ; glGetIntegerv ( GL_VIEWPORT , viewport ) ; glMatrixMode ( GL_PROJECTION ) ; glPushMatrix ( ) ; glLoadIdentity ( ) ; gluOrtho2D ( viewport [ 0 ] , viewport [ 2 ] , viewport [ 1 ] , viewport [ 3 ] ) ; glPopAttrib ( ) ; }
A fairly straight forward function that pushes
a projection matrix that will make object world
coordinates identical to window coordinates.
A fairly straight forward function that pushes a projection matrix that will make object world coordinates identical to window coordinates .