API Documentation
Static Public Member Functions | List of all members
nkAstraeus::nkGraphicsWrap::ShaderManagerWrapper Class Referencefinal

Wraps the nkGraphics::ShaderManager and offers functions for use in scripting. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue createOrRetrieve (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue get (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue rename (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue erase (const nkScripts::DataStack &stack)
 

Detailed Description

Wraps the nkGraphics::ShaderManager and offers functions for use in scripting.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::nkGraphicsWrap::ShaderManagerWrapper::updateEnvironment ( nkScripts::Environment env)
static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters
envThe environment to set up.

◆ createOrRetrieve()

static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::ShaderManagerWrapper::createOrRetrieve ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::ShaderManager::createOrRetrieveShader().

Parameters
stackThe parameter stack.
Returns
The output value, as a nkGraphics::Shader.

◆ get()

static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::ShaderManagerWrapper::get ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::ShaderManager::getShader().

local s = nkGraphics.ShaderManager.get("Hey") ;
Parameters
stackThe parameter stack.
Returns
The output value, as a nkGraphics::Shader.

◆ rename()

static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::ShaderManagerWrapper::rename ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::ShaderManager::renameShader().

Parameters
stackThe parameter stack.
Returns
The output value, empty.

◆ erase()

static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::ShaderManagerWrapper::erase ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::ShaderManager::eraseShader().

Parameters
stackThe parameter stack.
Returns
The output value, empty.

The documentation for this class was generated from the following file: