#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