summaryrefslogtreecommitdiff
path: root/glpong3d.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-08-06 18:06:33 +0000
committerMatt Turner <mattst88@gmail.com>2006-08-06 18:06:33 +0000
commit9b186bbaba1913b65ce01c570878b98346b35c71 (patch)
tree141efc9b602c36de6dab41bc3ff1eb6d1f096d5a /glpong3d.h
parentfaa75e3a202b773d5f90cd99bc076ca9635440bf (diff)
Added FPS counter. Cleaned up GLC code.
git-svn-id: svn://mattst88.com/svn/glpong3d/trunk@12 4dd1920e-271a-0410-bca0-81b404a81564
Diffstat (limited to 'glpong3d.h')
-rw-r--r--glpong3d.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/glpong3d.h b/glpong3d.h
index a248b7c..dfe6cab 100644
--- a/glpong3d.h
+++ b/glpong3d.h
@@ -13,6 +13,11 @@ typedef struct {
GLfloat x, y;
} Mouse_t;
+typedef struct {
+ GLuint context;
+ GLuint font;
+} GLC_t;
+
struct {
SDL_Event Event;
SDL_Surface * Surface;
@@ -20,8 +25,10 @@ struct {
Paddle_t Front;
Paddle_t Back;
Mouse_t Mouse;
+ GLC_t GLC;
GLfloat w;
GLfloat h;
+ GLuint fps;
Sint8 done;
} GLPong;