Changes the Renderer to expose global functions to scripts instead of using CJSObject.

Fixes #2137
Refs #1886

This was SVN commit r13877.
This commit is contained in:
Yves
2013-09-21 08:24:45 +00:00
parent c0b84fb41f
commit 12e2428495
12 changed files with 187 additions and 195 deletions
+2
View File
@@ -45,6 +45,7 @@
#include "ps/GameSetup/Atlas.h"
#include "ps/GameSetup/Config.h"
#include "ps/ConfigDB.h"
#include "renderer/scripting/JSInterface_Renderer.h"
#include "tools/atlas/GameInterface/GameLoop.h"
#include "simulation2/Simulation2.h"
@@ -652,6 +653,7 @@ void SetBoundingBoxDebugOverlay(void* UNUSED(cbdata), bool enabled)
void GuiScriptingInit(ScriptInterface& scriptInterface)
{
JSI_GameView::RegisterScriptFunctions(scriptInterface);
JSI_Renderer::RegisterScriptFunctions(scriptInterface);
// GUI manager functions:
scriptInterface.RegisterFunction<CScriptVal, &GetActiveGui>("GetActiveGui");