From d680d25c6a10678f0c999ade1041e363b0df7e91 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 3 Aug 2006 22:55:17 +0000 Subject: Code Import git-svn-id: svn://mattst88.com/svn/glpong/trunk@2 449aeecc-241a-0410-943f-e2f883e2d7a2 --- ball.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ball.h (limited to 'ball.h') diff --git a/ball.h b/ball.h new file mode 100644 index 0000000..6707ebb --- /dev/null +++ b/ball.h @@ -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 -- cgit v1.2.3