diff options
Diffstat (limited to 'ball.h')
-rw-r--r-- | ball.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#ifndef BALL_H
+#define BALL_H
+
+#include "SDL.h"
+#include "SDL_opengl.h"
+
+GLuint ball_texture;
+
+typedef struct {
+ GLfloat w, h, x, y;
+ GLfloat r, g, b, a;
+ GLfloat xv, yv;
+} Ball_t;
+
+void GLPong_BallAdd();
+void GLPong_BallDelete();
+int GLPong_BallCollide(const Ball_t * a, const Ball_t * b);
+
+#endif
|