#include "config.h"
#endif
-#include "../include/GL/freeglut.h"
+#include <GL/freeglut.h>
#include "freeglut_internal.h"
{
freeglut_assert_ready;
freeglut_assert_window;
- fgStructure.Window->State.Redisplay = TRUE;
+ fgStructure.Window->State.Redisplay = GL_TRUE;
}
/*
freeglut_assert_ready;
freeglut_assert_window;
- glFlush();
- if ( ! fgStructure.Window->Window.DoubleBuffered )
+ glFlush( );
+ if( ! fgStructure.Window->Window.DoubleBuffered )
return;
#if TARGET_HOST_UNIX_X11
#endif
/* GLUT_FPS env var support */
- if (fgState.FPSInterval) {
- GLint t = glutGet(GLUT_ELAPSED_TIME);
+ if( fgState.FPSInterval )
+ {
+ GLint t = glutGet( GLUT_ELAPSED_TIME );
fgState.SwapCount++;
- if (fgState.SwapTime == 0)
+ if( fgState.SwapTime == 0 )
fgState.SwapTime = t;
- else if (t - fgState.SwapTime > fgState.FPSInterval) {
- float time = 0.001f * (t - fgState.SwapTime);
- float fps = (float) fgState.SwapCount / time;
- fprintf(stderr, "freeglut: %d frames in %.2f seconds = %.2f FPS\n",
- fgState.SwapCount, time, fps);
+ else if( t - fgState.SwapTime > fgState.FPSInterval )
+ {
+ float time = 0.001f * ( t - fgState.SwapTime );
+ float fps = ( float )fgState.SwapCount / time;
+ fprintf( stderr,
+ "freeglut: %d frames in %.2f seconds = %.2f FPS\n",
+ fgState.SwapCount, time, fps );
fgState.SwapTime = t;
fgState.SwapCount = 0;
}
freeglut_assert_ready;
window = fgWindowByID( windowID );
- freeglut_return_if_fail( window != NULL );
- window->State.Redisplay = TRUE;
+ freeglut_return_if_fail( window );
+ window->State.Redisplay = GL_TRUE;
}
/*** END OF FILE ***/