diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-28 20:39:09 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-28 20:39:09 (GMT) |
| commit | 6760d15be73784537c2f6854c339387ed7f31e79 (patch) | |
| tree | 8517641cf95b9637943246f22b37a520e6739d94 /src/cat/LuaScriptInterface.h | |
| parent | 856a33e3dbf53fe1db85e074ab6033cacf0e06f8 (diff) | |
| download | powder-6760d15be73784537c2f6854c339387ed7f31e79.zip powder-6760d15be73784537c2f6854c339387ed7f31e79.tar.gz | |
Additions to Lua API: Renderer (colourMode, displayMode, renderMode, plus all the macros used for Particle/display/colour modes)
Diffstat (limited to 'src/cat/LuaScriptInterface.h')
| -rw-r--r-- | src/cat/LuaScriptInterface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h index 44ad279..f4f6af7 100644 --- a/src/cat/LuaScriptInterface.h +++ b/src/cat/LuaScriptInterface.h @@ -39,6 +39,12 @@ class LuaScriptInterface: public CommandInterface { bool luacon_mousedown; bool currentCommand; TPTScriptInterface * legacy; + + //Renderer + void initRendererAPI(); + static int luatpt_renderer_renderModes(lua_State * l); + static int luatpt_renderer_displayModes(lua_State * l); + static int luatpt_renderer_colourMode(lua_State * l); public: lua_State *l; LuaScriptInterface(GameModel * m); |
