diff options
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; |