projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a49c9e5
)
Disable/enable lighting in the "one.c" demo (John Fay)
author
J.C. Jones
<jc@insufficient.coffee>
Thu, 11 Dec 2003 18:49:38 +0000
(18:49 +0000)
committer
J.C. Jones
<jc@insufficient.coffee>
Thu, 11 Dec 2003 18:49:38 +0000
(18:49 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@388
7f0cb862
-5218-0410-a997-
914c9d46530a
progs/demos/One/one.c
patch
|
blob
|
history
diff --git
a/progs/demos/One/one.c
b/progs/demos/One/one.c
index
7d609db
..
627630e
100644
(file)
--- a/
progs/demos/One/one.c
+++ b/
progs/demos/One/one.c
@@
-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 );
}
/*