summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_init.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-08-17 00:12:12 +0000
committerBrian Paul <[email protected]>2002-08-17 00:12:12 +0000
commit46a035f76d3b7a2355f7655c9dd7e519d4238cdc (patch)
tree79178916830b7f890b66fa5f78305c8305a28a41 /src/glut/glx/glut_init.c
parent10730663a128c35c0241a79d885665e6272014d7 (diff)
added glutGetProcAddress() and GLUT_FPS env var option
Diffstat (limited to 'src/glut/glx/glut_init.c')
-rw-r--r--src/glut/glx/glut_init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glut/glx/glut_init.c b/src/glut/glx/glut_init.c
index dcd423a9417..d814479db0d 100644
--- a/src/glut/glx/glut_init.c
+++ b/src/glut/glx/glut_init.c
@@ -331,6 +331,16 @@ glutInit(int *argcp, char **argv)
glutInitWindowPosition(__glutInitX, __glutInitY);
}
__glutInitTime(&unused);
+
+ /* check if GLUT_FPS env var is set */
+ {
+ const char *fps = getenv("GLUT_FPS");
+ if (fps) {
+ sscanf(fps, "%d", &__glutFPS);
+ if (__glutFPS <= 0)
+ __glutFPS = 5000; /* 5000 milliseconds */
+ }
+ }
}
#ifdef _WIN32