summaryrefslogtreecommitdiffstats
path: root/sdl/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/platform.h')
-rw-r--r--sdl/platform.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/sdl/platform.h b/sdl/platform.h
index dc34788..d546749 100644
--- a/sdl/platform.h
+++ b/sdl/platform.h
@@ -7,21 +7,13 @@
#include "glframe.h"
#include "luatools.h"
+struct client;
+
/* 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;
@@ -31,6 +23,11 @@ struct platform
/* 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[];