*argcp -= numToRemove;
}
-void APIENTRY
+void GLUTAPIENTRY
glutInit(int *argcp, char **argv)
{
char *display = NULL;
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
-void APIENTRY
+void GLUTAPIENTRY
__glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int))
{
__glutExitFunc = exitfunc;
#endif
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutInitWindowPosition(int x, int y)
{
__glutInitX = x;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutInitWindowSize(int width, int height)
{
__glutInitWidth = width;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutInitDisplayMode(unsigned int mask)
{
__glutDisplayMode = mask;