diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 02:07:35 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 02:07:35 +0000 |
commit | af5e07345548d223b50c3a297743fc55f02e60e3 (patch) | |
tree | 3b7a9231940c068215f8e206b0f14d668ce8516b /glpong3d.h | |
parent | c64c44b72db943b213d6dce03d4253528d13be92 (diff) |
Code Import
git-svn-id: svn://mattst88.com/svn/glpong3d/trunk@3 4dd1920e-271a-0410-bca0-81b404a81564
Diffstat (limited to 'glpong3d.h')
-rw-r--r-- | glpong3d.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/glpong3d.h b/glpong3d.h new file mode 100644 index 0000000..edc6394 --- /dev/null +++ b/glpong3d.h @@ -0,0 +1,30 @@ +#ifndef GLPONG3D_H
+#define GLPONG3D_H
+
+#include "SDL.h"
+#include "SDL_opengl.h"
+
+#include "ball.h"
+#include "paddle.h"
+
+struct {
+ SDL_Event Event;
+ SDL_Surface * Surface;
+ Ball_t Ball;
+ /*Paddle_t Front, Back;*/
+ GLfloat w;
+ GLfloat h;
+ Sint8 done;
+} GLPong;
+
+void GLPong_Init();
+void GLPong_HandleEvents();
+void GLPong_Draw();
+void GLPong_CleanUp();
+void GLPong_Move();
+
+GLuint SDL_GL_SurfaceToTexture(SDL_Surface * surface);
+/*GLuint SDL_GL_NPOTSurfaceToTexture(SDL_Surface * surface, GLfloat * wratio, GLfloat * hratio);*/
+__inline__ unsigned int NextPow2(unsigned int value);
+
+#endif
|