diff options
author | Matt Turner <mattst88@gmail.com> | 2008-05-14 16:26:15 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-05-14 16:26:15 +0000 |
commit | 15e2da75f4a8550b445a4ba8cb3d21c20beb007f (patch) | |
tree | 7e2708a75653b85e468523c08629f870f174b07e /fps.c | |
parent | a8921d2baf7fe632839ec4c1a6f55db9c78f1c1c (diff) |
Make quesoglc work. Still need to sort out why GLC_TRIANGLE works but GLC_TEXTURE doesn't.
git-svn-id: svn://mattst88.com/svn/glpong/trunk@15 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'fps.c')
-rw-r--r-- | fps.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -14,14 +14,11 @@ GLPong_FPSInit() { start = SDL_GetTicks(); } -void +INLINE GLfloat GLPong_FPSCount() { - // 10.0f is the number of frames we let draw before calculating FPS - fps = 10.0f / (SDL_GetTicks() - start) * 1000; // 1 sec / 1 millisec == 1000 + /* 10.0f is the number of frames we let draw before calculating FPS */ + fps = 10.0f / (SDL_GetTicks() - start) * 1000; /* 1 sec / 1 millisec == 1000 */ start = SDL_GetTicks(); + return fps; } -void -GLPong_FPSPrint() { - printf("%.2f frames per second\n", fps); -} |