diff options
author | Matt Turner <mattst88@gmail.com> | 2010-01-21 21:13:03 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-04-04 17:14:35 -0400 |
commit | 4e9c7eec3078775c7bf2ed79169fc384e6d17d63 (patch) | |
tree | 76120089a46ab5c91a935ce4eaedaf6ecef9d8b8 /glpong3d.h | |
parent | 89c1f661870d210cf4c0971f97a67a1a7c5b7a39 (diff) |
Rework Mouse, clean GLPong_t struct.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'glpong3d.h')
-rw-r--r-- | glpong3d.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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; |