#ifndef _PLATFORM_H_ #define _PLATFORM_H_ #include #include #include #include "glframe.h" #include "luatools.h" struct client; /* platform struct */ struct platform { GLFrame camera; /* 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; /* client */ struct client *c; int (*client_init)(struct client *); int (*client_destroy)(struct client *); }; 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