Disable/enable lighting in the "one.c" demo (John Fay)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@388 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
9438a576ba
commit
de8936fe30
@ -35,6 +35,7 @@ void PrintText( int nX, int nY, char* pszText )
|
||||
/*
|
||||
* Prepare the OpenGL state
|
||||
*/
|
||||
glDisable( GL_LIGHTING );
|
||||
glDisable( GL_DEPTH_TEST );
|
||||
glMatrixMode( GL_PROJECTION );
|
||||
glPushMatrix();
|
||||
@ -86,6 +87,7 @@ void PrintText( int nX, int nY, char* pszText )
|
||||
*/
|
||||
glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );
|
||||
glEnable( GL_DEPTH_TEST );
|
||||
glEnable( GL_LIGHTING );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user