aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_scene.cpp
blob: f64fc265c3c2c01553efbe500bd7edddaf1beffe (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
#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 <shared/lua_api/common.hpp>

using namespace irr;
using namespace video;

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);

	//INode flags
	set_const(L,EMF_WIREFRAME);

	//lua_pop(L, 1);
	
}