summaryrefslogtreecommitdiff
path: root/ball.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-08-04 00:56:19 +0000
committerMatt Turner <mattst88@gmail.com>2006-08-04 00:56:19 +0000
commitf6997ebd1de555916c491dbd603f7a0e9c1d9c58 (patch)
tree23645695bcf2c9ddd154d004dfe09693139ffbf0 /ball.h
parentf2837ef813150240c00741018542dc271213ff5c (diff)
git-svn-id: svn://mattst88.com/svn/sdlpong/trunk@2 e27a58fc-241a-0410-afba-9958544cdf14HEADmaster
Diffstat (limited to 'ball.h')
-rw-r--r--ball.h20
1 files changed, 20 insertions, 0 deletions
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