diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-09 03:04:24 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-09 03:04:24 +0000 |
commit | a61afd2ec1baa53361fa763430c5c0abfe6647df (patch) | |
tree | 1b0fd7cc0dc8ea165b54bc1b7d2f903a9be4c6a2 /glpong3d.h | |
parent | 9b186bbaba1913b65ce01c570878b98346b35c71 (diff) |
New ball image. Fixes, code clean up. Removal of unused functions.
git-svn-id: svn://mattst88.com/svn/glpong3d/trunk@13 4dd1920e-271a-0410-bca0-81b404a81564
Diffstat (limited to 'glpong3d.h')
-rw-r--r-- | glpong3d.h | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -4,11 +4,23 @@ #include "SDL.h"
#include "SDL_opengl.h"
-#include "ball.h"
-#include "paddle.h"
-
GLuint background;
+GLuint paddle_texture;
+GLuint ball_texture;
+
+typedef struct {
+ GLfloat w, h, x, y, z;
+ GLfloat r, g, b;
+} Paddle_t;
+
+typedef struct {
+ GLfloat w, h, x, y, z;
+ GLfloat r, g, b;
+ GLfloat xv, yv, zv;
+ GLfloat rotate;
+} Ball_t;
+
typedef struct {
GLfloat x, y;
} Mouse_t;
@@ -40,7 +52,5 @@ void GLPong_Move(); GLuint SDL_GL_SurfaceToTexture(SDL_Surface * surface);
__inline__ unsigned int NextPow2(unsigned int value);
-void glEnable2D();
-void glDisable2D();
#endif
|