diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-03 22:55:17 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-03 22:55:17 +0000 |
commit | d680d25c6a10678f0c999ade1041e363b0df7e91 (patch) | |
tree | e83fdf7d6f9bba468915f237a93dd68041ae11d9 /ball.h | |
parent | 6038164bf457873d51a825ff48cf50f6080ff818 (diff) |
Code Import
git-svn-id: svn://mattst88.com/svn/glpong/trunk@2 449aeecc-241a-0410-943f-e2f883e2d7a2
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
|