#ifndef _PLATFORM_H_ #define _PLATFORM_H_ #include #include #include #include "glframe.h" #include "luatools.h" /* platform struct */ struct platform { GLFrame camera; /* display lists identifiers */ GLuint ground_list; GLuint triangle_list; /* pyramid texture handle */ GLuint textures[2]; GLfloat xrot; GLfloat yrot; /* SDL surface, our screen */ SDL_Surface *screen; SDL_TimerID timer_id; SDL_Cursor *my_cursor; /* Lua */ lua_State *L; struct luat_table_platform config_table; }; extern const GLfloat fNoLight[]; extern const GLfloat fLowLight[]; extern const GLfloat fShinyLight[]; extern const GLfloat fBrightLight[]; extern const GLfloat lightPos[]; /* function prototypes */ void platform_init(struct platform *); void platform_destroy(struct platform *); void load_config(struct platform *); void setup_opengl(void); SDL_Surface *setup_sdl_video(int, int, int, unsigned int); SDL_Surface *setup_sdl(void); void setup_glew(void); #endif