From 197d7256010de6a0e551572f87262c94e5b9e91e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 30 Mar 2006 14:25:54 +0000 Subject: [PATCH] added -f option for full-screeen --- progs/demos/gloss.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/progs/demos/gloss.c b/progs/demos/gloss.c index 4e7adc8d48f..80f9e4672ea 100644 --- a/progs/demos/gloss.c +++ b/progs/demos/gloss.c @@ -236,6 +236,7 @@ static void SpecialKey( int key, int x, int y ) static void Init( int argc, char *argv[] ) { GLboolean convolve = GL_FALSE; + GLboolean fullscreen = GL_FALSE; int i; for (i = 1; i < argc; i++) { @@ -248,8 +249,13 @@ static void Init( int argc, char *argv[] ) else if (strcmp(argv[i], "-c")==0) { convolve = GL_TRUE; } + else if (strcmp(argv[i], "-f")==0) { + fullscreen = GL_TRUE; + } } + if (fullscreen) + glutFullScreen(); /* Cylinder object */ { @@ -421,7 +427,8 @@ int main( int argc, char *argv[] ) glutKeyboardFunc( Key ); glutSpecialFunc( SpecialKey ); glutDisplayFunc( Display ); - glutIdleFunc( Idle ); + if (Animate) + glutIdleFunc( Idle ); glutCreateMenu(ModeMenu); glutAddMenuEntry("Toggle Highlight", DO_SPEC_TEXTURE); -- 2.30.2