PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/src/bindings/bind_all.h

https://bitbucket.org/vivkin/gam3b00bs/
C++ Header | 32 lines | 14 code | 11 blank | 7 comment | 0 complexity | 2e626119e58b45ff794550efeb60cadc MD5 | raw file
 1#pragma once
 2//
 3// bind_all.h - all subsystem bindings go in here
 4//
 5
 6extern "C"
 7{
 8#include "lua/lua.h"
 9#include "lua/lualib.h"
10#include "lua/lauxlib.h"
11}
12
13namespace luab // Lua bindings
14{
15
16	// Creates a Lua state, initializes bindings, then calls "game/scripts/main.lua".
17	// Returns zero on success.
18
19	int start_scripts();
20
21
22	///////////////////////////////////////
23	// Bindings:
24
25	void bind_app( lua_State * L ); // application
26
27	void bind_renderer( lua_State * L ); // renderer
28
29	void bind_input( lua_State * L ); // input
30}
31
32