blob: e05cb6bff96faa6c8a3eb2b21fd6ed61811f9ce8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef _LUATOOLS_H_
#define _LUATOOLS_H_
#include <lua.h>
/* 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
|