#ifndef _LUATOOLS_H_ #define _LUATOOLS_H_ #include /* lua table to c struct converter would be very useful */ struct luat_table_platform { const char *name; const char *icon; unsigned int xres; unsigned int yres; unsigned int bpp; unsigned int af; float fovy; float znear; float zfar; unsigned int maxfps; }; const char *luaGetFieldString(lua_State *L, const char *); double luaGetFieldNumber(lua_State *, const char *); int luaLoadConfig(lua_State *, const char *); int luaFillTablePlatform(lua_State *, struct luat_table_platform *); void luaPrintTablePlatform(struct luat_table_platform *); #endif