diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-03 22:55:17 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-03 22:55:17 +0000 |
commit | d680d25c6a10678f0c999ade1041e363b0df7e91 (patch) | |
tree | e83fdf7d6f9bba468915f237a93dd68041ae11d9 /paddle.c | |
parent | 6038164bf457873d51a825ff48cf50f6080ff818 (diff) |
Code Import
git-svn-id: svn://mattst88.com/svn/glpong/trunk@2 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'paddle.c')
-rw-r--r-- | paddle.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/paddle.c b/paddle.c new file mode 100644 index 0000000..be1ba87 --- /dev/null +++ b/paddle.c @@ -0,0 +1,23 @@ +#include <stdlib.h>
+
+#include "SDL.h"
+#include "SDL_opengl.h"
+
+#include "paddle.h"
+#include "glpong.h"
+#include "ball.h"
+
+void GLPong_PaddlesCreate() {
+ GLPong.Left.w = 8;
+ GLPong.Left.h = 64;
+ GLPong.Left.x = 0;
+ GLPong.Left.y = (GLPong.h / 2) - (GLPong.h / 2);
+ GLPong.Left.r = 1.0;
+ GLPong.Left.g = 1.0;
+ GLPong.Left.b = 1.0;
+ GLPong.Left.a = 0.0;
+ GLPong.Left.Top.w = GLPong.Left.w;
+ GLPong.Left.Top.h = 1;
+ GLPong.Left.Top.x = GLPong.Left.x;
+ GLPong.Left.Top.y = GLPong.Left.y - 1;
+}
|