summaryrefslogtreecommitdiff
path: root/glpong3d.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-01-21 21:13:03 -0500
committerMatt Turner <mattst88@gmail.com>2011-04-04 17:14:35 -0400
commit4e9c7eec3078775c7bf2ed79169fc384e6d17d63 (patch)
tree76120089a46ab5c91a935ce4eaedaf6ecef9d8b8 /glpong3d.h
parent89c1f661870d210cf4c0971f97a67a1a7c5b7a39 (diff)
Rework Mouse, clean GLPong_t struct.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'glpong3d.h')
-rw-r--r--glpong3d.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/glpong3d.h b/glpong3d.h
index 55bab80..7dd0adf 100644
--- a/glpong3d.h
+++ b/glpong3d.h
@@ -27,28 +27,28 @@ GLuint paddle_texture_hit;
GLuint ball_texture;
typedef struct {
- GLfloat w, h, x, y, z;
+ GLfloat x, y, z;
+} Coord_t;
+
+typedef struct {
+ Coord_t coord;
+ GLfloat w, h;
GLfloat r, g, b;
} Paddle_t;
typedef struct {
- GLfloat w, h, x, y, z;
+ Coord_t coord;
+ GLfloat w, h;
GLfloat r, g, b;
GLfloat xv, yv, zv;
GLfloat rotate;
} Ball_t;
typedef struct {
- GLfloat x, y;
-} Mouse_t;
-
-typedef struct {
SDL_Surface * Surface;
Ball_t Ball;
Paddle_t Front;
Paddle_t Back;
- Mouse_t Mouse;
- GLfloat fps;
} GLPong_t;
GLPong_t GLPong;