aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_scene.cpp
blob: 285cba07b5cb75d24242745eebff51be05184cc8 (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
#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/bphysbox.hpp"
#include "phys/bphysmodel.hpp"

using namespace irr;

extern IrrlichtDevice* device;

void load_scenefuncs(lua_State* L){
	icamera_register(L,device);
	imesh_register(L,device);
	ilight_register(L,device);
	bphysbox_register(L,device);
	bphysmodel_register(L,device);
	lua_pop(L, 1);
	
	lua_newtable(L);
	lua_setglobal(L,"scene");
}