summaryrefslogtreecommitdiff
path: root/glpong3d.h
diff options
context:
space:
mode:
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;