summaryrefslogtreecommitdiff
path: root/ball.h
diff options
context:
space:
mode:
Diffstat (limited to 'ball.h')
-rw-r--r--ball.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/ball.h b/ball.h
index bf3e849..fcda649 100644
--- a/ball.h
+++ b/ball.h
@@ -4,10 +4,16 @@
#include "SDL.h"
#include "SDL_opengl.h"
-#include "glpong3d.h"
+typedef struct {
+ GLfloat x, y, z;
+ GLfloat w, h;
+ GLfloat r, g, b;
+ GLfloat xv, yv, zv;
+ GLfloat rotate;
+} Ball_t;
-void GLPong_BallDraw(void);
-void GLPong_BallInit(GLuint texture);
-void GLPong_BallMove(void);
+void GLPong_BallDraw(const Ball_t * ball);
+void GLPong_BallInit(Ball_t * ball, GLuint texture);
+void GLPong_BallMove(Ball_t * ball);
#endif