diff options
Diffstat (limited to 'ball.h')
-rw-r--r-- | ball.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,11 +8,13 @@ GLuint ball_texture; typedef struct Ball_t { struct Ball_t * next; /* next ball; 4 or 8 bytes */ - GLfloat w, h, x, y; /* width, height, x, y coordinates; 4 bytes ea. */ + GLfloat x, y; /* x, y coordinates; 4 bytes ea. */ GLfloat xv, yv; /* x and y velocity components; 4 bytes ea. */ GLubyte r, g, b, a; /* red, green, blue, alpha components; 1 byte ea. */ } Ball_t; +void GLPong_BallInit(); +void GLPong_BallDeinit(); void GLPong_BallAdd(Ball_t ** balls); void GLPong_BallDelete(Ball_t * from, Ball_t * ball); void GLPong_BallDeleteAll(Ball_t * list); |