projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f40369c
)
Moved glutInit*() functions ahead of glutInit(). (This is proper use of
author
Richard Rauch
<rkr@olib.org>
Tue, 11 Nov 2003 11:20:01 +0000
(11:20 +0000)
committer
Richard Rauch
<rkr@olib.org>
Tue, 11 Nov 2003 11:20:01 +0000
(11:20 +0000)
glutInit() in general, since it allows the user to override settings via
{argc, argv} command-line params.)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@338
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
20349df
..
7a714f4
100644
(file)
--- a/
progs/demos/One/one.c
+++ b/
progs/demos/One/one.c
@@
-250,12
+250,12
@@
int main( int argc, char** argv )
{
int menuID, subMenuA, subMenuB;
- glutInit( &argc, argv );
-
glutInitDisplayString( "stencil~2 rgb double depth>=16 samples" );
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
glutInitWindowPosition( 100, 100 );
+ glutInit( &argc, argv );
+
subMenuA = glutCreateMenu( SampleMenu );
glutAddMenuEntry( "Sub menu A1 (01)", 1 );
glutAddMenuEntry( "Sub menu A2 (02)", 2 );