aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_phys.cpp
blob: 23bb22ab71379bc3231ef75b014b5dafeff17637 (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
#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 "../callbackhandeler.hpp"
#include "phys/cbphysbox.hpp"
#include "phys/bphysmodel.hpp"

using namespace irr;
using namespace gui;
using namespace core;

extern IrrlichtDevice* device;

void load_physfuncs(lua_State* L){
	lua_newtable(L);//{}
	lua_setglobal(L,"phys");//
	//phys things	
	cbphysbox_register(L);
	
	bphysmodel_register(L,device);
}