summaryrefslogtreecommitdiff
path: root/paddle.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-02-09 18:54:57 -0500
committerMatt Turner <mattst88@gmail.com>2011-04-04 17:14:36 -0400
commit9628bb86f9f31f6186b473ea3b386286c0e92623 (patch)
tree86ce401818879ecf886d1a30e4c165c66454a23a /paddle.h
parentc13c49df034b292652017e35b3bf4fa6b9fe6af7 (diff)
Add Paddle/Ball collision detection.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'paddle.h')
-rw-r--r--paddle.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/paddle.h b/paddle.h
index 14b7ed8..61962e7 100644
--- a/paddle.h
+++ b/paddle.h
@@ -4,7 +4,11 @@
#include "SDL.h"
#include "SDL_opengl.h"
-#include "glpong3d.h"
+typedef struct {
+ GLfloat x, y, z;
+ GLfloat w, h;
+ GLfloat r, g, b;
+} Paddle_t;
void GLPong_PaddleDraw(const Paddle_t * paddle);
void GLPong_PaddleInit(Paddle_t * paddle, GLfloat z, GLuint texture);