Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSInterface_Renderer.cpp File Reference
#include "precompiled.h"
#include "JSInterface_Renderer.h"
#include "graphics/TextureManager.h"
#include "renderer/RenderingOptions.h"
#include "renderer/Renderer.h"
#include "scriptinterface/FunctionWrapper.h"
Include dependency graph for JSInterface_Renderer.cpp:

Namespaces

namespace  JSI_Renderer
 

Macros

#define IMPLEMENT_BOOLEAN_SCRIPT_SETTING(NAME)
 
#define REGISTER_BOOLEAN_SCRIPT_SETTING(NAME)
 

Functions

 JSI_Renderer::IMPLEMENT_BOOLEAN_SCRIPT_SETTING (DisplayFrustum)
 
 JSI_Renderer::IMPLEMENT_BOOLEAN_SCRIPT_SETTING (DisplayShadowsFrustum)
 
std::string JSI_Renderer::GetRenderPath ()
 
std::string JSI_Renderer::GetRenderDebugMode ()
 
void JSI_Renderer::SetRenderDebugMode (const std::string &mode)
 
bool JSI_Renderer::TextureExists (const std::wstring &filename)
 
void JSI_Renderer::RegisterScriptFunctions (const ScriptRequest &rq)
 

Macro Definition Documentation

◆ IMPLEMENT_BOOLEAN_SCRIPT_SETTING

#define IMPLEMENT_BOOLEAN_SCRIPT_SETTING (   NAME)
Value:
bool Get##NAME##Enabled() \
{ \
return g_RenderingOptions.Get##NAME(); \
} \
\
void Set##NAME##Enabled(bool enabled) \
{ \
g_RenderingOptions.Set##NAME(enabled); \
}
CRenderingOptions g_RenderingOptions
Definition: RenderingOptions.cpp:35
void Get(const CStr &value, T &ret)
Definition: ConfigDB.cpp:56

◆ REGISTER_BOOLEAN_SCRIPT_SETTING

#define REGISTER_BOOLEAN_SCRIPT_SETTING (   NAME)
Value:
ScriptFunction::Register<&Get##NAME##Enabled>(rq, "Renderer_Get" #NAME "Enabled"); \
ScriptFunction::Register<&Set##NAME##Enabled>(rq, "Renderer_Set" #NAME "Enabled");