diff options
author | Matt Turner <mattst88@gmail.com> | 2010-02-09 18:54:57 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-04-04 17:14:36 -0400 |
commit | 9628bb86f9f31f6186b473ea3b386286c0e92623 (patch) | |
tree | 86ce401818879ecf886d1a30e4c165c66454a23a /paddle.h | |
parent | c13c49df034b292652017e35b3bf4fa6b9fe6af7 (diff) |
Add Paddle/Ball collision detection.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'paddle.h')
-rw-r--r-- | paddle.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |