summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-03-30 14:25:54 +0000
committerBrian Paul <[email protected]>2006-03-30 14:25:54 +0000
commit197d7256010de6a0e551572f87262c94e5b9e91e (patch)
tree9a9ebe3ae39d3ad1a62954727b84063c0df33e06 /progs
parent693a66aea94c9a043e9c056395cd4f6c29bee9e7 (diff)
added -f option for full-screeen
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/gloss.c9
1 files changed, 8 insertions, 1 deletions
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);