blob: 342bc9ac1543a211a2943d1e362ae12e0ff620a6 (
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
29
30
31
32
33
34
35
36
37
38
|
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <map>
extern "C" {
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
#include <irrlicht.h>
#include "scene/icamera.hpp"
#include "scene/imesh.hpp"
#include "scene/ilight.hpp"
#include "phys/cbphysbox.hpp"
#include "phys/bphysmodel.hpp"
using namespace irr;
extern IrrlichtDevice* device;
void load_scenefuncs(lua_State* L){
lua_newtable(L);//{}
lua_setglobal(L,"scene");//
//scene things
icamera_register(L);
imesh_register(L);
ilight_register(L);
lua_newtable(L);//{}
lua_setglobal(L,"phys");//
//phys things
cbphysbox_register(L);
bphysmodel_register(L,device);
//lua_pop(L, 1);
}
|