Wraps a nkGraphics::Mesh and offers functions for use in scripting.
More...
Wraps a nkGraphics::Mesh and offers functions for use in scripting.
◆ updateEnvironment()
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ setCurrentVertexComposition()
static void nkAstraeus::nkGraphicsWrap::MeshWrapper::setCurrentVertexComposition |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::Mesh::getCurrentVertexComposition(), exposed as an attribute setter.
m.vertexComposition = c ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getCurrentVertexComposition()
static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::MeshWrapper::getCurrentVertexComposition |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkGraphics::Mesh::getCurrentVertexComposition(), exposed as an attribute getter.
local c = m.vertexComposition ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkGraphics::VertexComposition.
◆ fillPackedFromUnpacked()
Wrapper function for the nkGraphics::Mesh::fillPackedFromUnpacked().
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ load()
Wrapper function for the nkGraphics::Mesh::load().
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, as a bool.
◆ unload()
◆ getNewVertexArray()
Wrapper function for the nkGraphics::Mesh::getNewVertexArray().
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, as a nkAstraeus::ArrayData<nkGraphics::VertexComponent>.
◆ getCurrentVertexArray()
Wrapper function for the nkGraphics::Mesh::getCurrentVertexArray().
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, as a nkAstraeus::ArrayData<nkGraphics::VertexComponent>.
◆ setVertexCount()
static void nkAstraeus::nkGraphicsWrap::MeshWrapper::setVertexCount |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::Mesh::setVertexCount(), exposed as an attribute setter.
m.vertexComposition = c ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getVertexCount()
Wrapper function for nkGraphics::Mesh::getVertexCount(), exposed as an attribute getter.
local c = m.vertexCount ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a int.
◆ getNewIndexArray()
Wrapper function for the nkGraphics::Mesh::getNewIndexArray().
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, as a nkAstraeus::IntArrayData.
◆ getCurrentIndexArray()
Wrapper function for the nkGraphics::Mesh::getCurrentIndexArray().
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, as a nkAstraeus::IntArrayData.
◆ setIndexCount()
static void nkAstraeus::nkGraphicsWrap::MeshWrapper::setIndexCount |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::Mesh::setIndexCount(), exposed as an attribute setter.
m.indexCount = c ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getIndexCount()
Wrapper function for nkGraphics::Mesh::getIndexCount(), exposed as an attribute getter.
local c = m.indexCount ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a int.
◆ setHidden()
static void nkAstraeus::nkGraphicsWrap::MeshWrapper::setHidden |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for the nkGraphics::Mesh::setHidden(), exposed as an attribute setter.
m.hidden = true ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getHidden()
Wrapper function for the nkGraphics::Mesh::getHidden(), exposed as an attribute getter.
local h = m.hidden ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
◆ getLoadState()
Wrapper function for the nkGraphics::Mesh::getLoadState(), exposed as an attribute getter.
local h = m.loadState ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsAstraeus/Scripts/nkGraphicsWrap/Meshes/MeshWrapper.h