9#define VECTOR_METATABLE "vec2"
12#define luaL_optvector( L, ind, def ) \
13 nluaL_optarg( L, ind, def, luaL_checkvector )
int nlua_loadVector(nlua_env env)
Loads the vector metatable.
int lua_isvector(lua_State *L, int ind)
Checks to see if ind is a vector.
vec2 * luaL_checkvector(lua_State *L, int ind)
Gets vector at index making sure type is valid.
vec2 * lua_tovector(lua_State *L, int ind)
Represents a 2D vector in Lua.
vec2 * lua_pushvector(lua_State *L, vec2 vec)
Pushes a vector on the stack.