diff options
Diffstat (limited to 'ball.h')
-rw-r--r-- | ball.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -4,10 +4,16 @@ #include "SDL.h" #include "SDL_opengl.h" -#include "glpong3d.h" +typedef struct { + GLfloat x, y, z; + GLfloat w, h; + GLfloat r, g, b; + GLfloat xv, yv, zv; + GLfloat rotate; +} Ball_t; -void GLPong_BallDraw(void); -void GLPong_BallInit(GLuint texture); -void GLPong_BallMove(void); +void GLPong_BallDraw(const Ball_t * ball); +void GLPong_BallInit(Ball_t * ball, GLuint texture); +void GLPong_BallMove(Ball_t * ball); #endif |