diff options
Diffstat (limited to 'glpong3d.h')
-rw-r--r-- | glpong3d.h | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -4,6 +4,9 @@ #include "SDL.h" #include "SDL_opengl.h" +#include "ball.h" +#include "paddle.h" + #define GLPONG_WIDTH 800.0f #define GLPONG_HEIGHT 600.0f @@ -26,22 +29,11 @@ #endif typedef struct { - GLfloat x, y, z; -} Coord_t; - -typedef struct { - Coord_t coord; - GLfloat w, h; - GLfloat r, g, b; -} Paddle_t; - -typedef struct { Paddle_t front_paddle; Paddle_t back_paddle; + Ball_t ball; } GLPong_t; -GLPong_t GLPong; - GLuint box; #endif |