summaryrefslogtreecommitdiff
path: root/ball.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2007-12-04 21:58:06 +0000
committerMatt Turner <mattst88@gmail.com>2007-12-04 21:58:06 +0000
commit01fad53a58f67c948fcf2b5617e9b557f264671c (patch)
treef8dc152a19d00847438b71231683f5a5fb8dabf2 /ball.h
parent0e0bc15ac984dc5f5a96e346491c7e799d37baf1 (diff)
Use a display list for ball rendering.
git-svn-id: svn://mattst88.com/svn/glpong/trunk@9 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'ball.h')
-rw-r--r--ball.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ball.h b/ball.h
index ad371b3..4618b46 100644
--- a/ball.h
+++ b/ball.h
@@ -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);