From f6997ebd1de555916c491dbd603f7a0e9c1d9c58 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 4 Aug 2006 00:56:19 +0000 Subject: git-svn-id: svn://mattst88.com/svn/sdlpong/trunk@2 e27a58fc-241a-0410-afba-9958544cdf14 --- ball.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ball.h (limited to 'ball.h') diff --git a/ball.h b/ball.h new file mode 100644 index 0000000..8a97e54 --- /dev/null +++ b/ball.h @@ -0,0 +1,20 @@ +#ifndef BALL_H +#define BALL_H + +#include "SDL.h" +#include "SDL_image.h" + +typedef struct { + SDL_Surface * Surface; + SDL_Rect Rect; + Sint8 xv; + Sint8 yv; + Uint8 absolute; + Uint8 counter; +} Ball_t; + +Ball_t * CreateBall(const char * image); +void DrawBall(Ball_t * Ball); +void DeleteBall(Ball_t * Ball); + +#endif -- cgit v1.2.3