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

Wraps a nkGraphics::GltfMeshDecoder and offers functions for use in scripting. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue canDecode (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue decode (const nkScripts::DataStack &stack)
 

Detailed Description

Wraps a nkGraphics::GltfMeshDecoder and offers functions for use in scripting.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::nkGraphicsWrap::GltfMeshDecoderWrapper::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.

◆ canDecode()

static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::GltfMeshDecoderWrapper::canDecode ( const nkScripts::DataStack stack)
static

Wrapper function for the nkGraphics::GltfMeshDecoder::canDecode().

local b = nkGraphics.GltfMeshDecoder.canDecode(sourcesUbyte) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a bool.

◆ decode()

static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::GltfMeshDecoderWrapper::decode ( const nkScripts::DataStack stack)
static

Wrapper function for the nkGraphics::GltfMeshDecoder::decode().

local b = nkGraphics.GltfMeshDecoder.decode(sourcesUbyte, mesh) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a bool.

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