2017-03-11 11:08:07 +00:00
|
|
|
#include "luax.h"
|
2017-04-02 12:55:21 +00:00
|
|
|
#include "filesystem/blob.h"
|
2017-03-11 22:13:49 +00:00
|
|
|
#include "graphics/mesh.h"
|
2017-03-11 11:08:07 +00:00
|
|
|
#include "math/math.h"
|
|
|
|
#include "lib/map/map.h"
|
|
|
|
|
|
|
|
int l_lovrAudioInit(lua_State* L);
|
|
|
|
int l_lovrEventInit(lua_State* L);
|
|
|
|
int l_lovrFilesystemInit(lua_State* L);
|
|
|
|
int l_lovrGraphicsInit(lua_State* L);
|
|
|
|
int l_lovrHeadsetInit(lua_State* L);
|
|
|
|
int l_lovrMathInit(lua_State* L);
|
2017-05-16 04:59:53 +00:00
|
|
|
int l_lovrPhysicsInit(lua_State* L);
|
2017-03-11 11:08:07 +00:00
|
|
|
int l_lovrTimerInit(lua_State* L);
|
|
|
|
|
|
|
|
extern const luaL_Reg lovrAudio[];
|
|
|
|
extern const luaL_Reg lovrController[];
|
2017-04-01 23:50:10 +00:00
|
|
|
extern const luaL_Reg lovrBlob[];
|
2017-05-16 05:09:32 +00:00
|
|
|
extern const luaL_Reg lovrBody[];
|
2017-03-11 11:08:07 +00:00
|
|
|
extern const luaL_Reg lovrEvent[];
|
|
|
|
extern const luaL_Reg lovrFilesystem[];
|
|
|
|
extern const luaL_Reg lovrFont[];
|
|
|
|
extern const luaL_Reg lovrGraphics[];
|
|
|
|
extern const luaL_Reg lovrHeadset[];
|
|
|
|
extern const luaL_Reg lovrMath[];
|
2017-03-11 22:13:49 +00:00
|
|
|
extern const luaL_Reg lovrMesh[];
|
2017-03-11 11:08:07 +00:00
|
|
|
extern const luaL_Reg lovrModel[];
|
2017-05-16 04:59:53 +00:00
|
|
|
extern const luaL_Reg lovrPhysics[];
|
2017-03-11 11:08:07 +00:00
|
|
|
extern const luaL_Reg lovrShader[];
|
|
|
|
extern const luaL_Reg lovrSkybox[];
|
|
|
|
extern const luaL_Reg lovrSource[];
|
|
|
|
extern const luaL_Reg lovrTexture[];
|
|
|
|
extern const luaL_Reg lovrTimer[];
|
|
|
|
extern const luaL_Reg lovrTransform[];
|
2017-05-16 05:02:08 +00:00
|
|
|
extern const luaL_Reg lovrWorld[];
|
2017-03-11 11:08:07 +00:00
|
|
|
|
2017-03-12 11:03:36 +00:00
|
|
|
extern map_int_t BlendAlphaModes;
|
|
|
|
extern map_int_t BlendModes;
|
2017-03-11 11:08:07 +00:00
|
|
|
extern map_int_t CompareModes;
|
|
|
|
extern map_int_t ControllerAxes;
|
|
|
|
extern map_int_t ControllerButtons;
|
|
|
|
extern map_int_t DrawModes;
|
|
|
|
extern map_int_t EventTypes;
|
|
|
|
extern map_int_t FilterModes;
|
|
|
|
extern map_int_t HeadsetEyes;
|
2017-03-16 03:12:56 +00:00
|
|
|
extern map_int_t HorizontalAligns;
|
2017-03-12 11:03:36 +00:00
|
|
|
extern map_int_t MeshAttributeTypes;
|
|
|
|
extern map_int_t MeshDrawModes;
|
|
|
|
extern map_int_t MeshUsages;
|
2017-03-11 11:08:07 +00:00
|
|
|
extern map_int_t PolygonWindings;
|
2017-05-16 18:17:01 +00:00
|
|
|
extern map_int_t ShapeTypes;
|
2017-03-11 11:08:07 +00:00
|
|
|
extern map_int_t TextureProjections;
|
|
|
|
extern map_int_t TimeUnits;
|
2017-03-16 03:12:56 +00:00
|
|
|
extern map_int_t VerticalAligns;
|
2017-03-11 11:08:07 +00:00
|
|
|
extern map_int_t WrapModes;
|
|
|
|
|
2017-03-11 22:13:49 +00:00
|
|
|
void luax_checkmeshformat(lua_State* L, int index, MeshFormat* format);
|
2017-04-02 12:55:21 +00:00
|
|
|
int luax_readtransform(lua_State* L, int index, mat4 transform);
|
|
|
|
Blob* luax_readblob(lua_State* L, int index, const char* debug);
|