Wraps a nkGraphics::VertexComposition and offers functions for use in scripting.
More...
Wraps a nkGraphics::VertexComposition and offers functions for use in scripting.
◆ updateEnvironment()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::updateEnvironment |
( |
nkScripts::Environment * |
env | ) |
|
|
static |
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ constructor()
static void* nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::constructor |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for the constructor of the user type.
local t = nkGraphics.VertexComposition.new() ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ destructor()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::destructor |
( |
void * |
toDestroy | ) |
|
|
static |
Wrapper function for the destructor of the user type.
- Parameters
-
toDestroy | The data that has to be freed. |
◆ getPosition()
static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::getPosition |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_position, exposed as an attribute getter.
local p = m.position ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
◆ setPosition()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::setPosition |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_position, exposed as an attribute setter.
m.position = p ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getNormal()
Wrapper function for nkGraphics::VertexComposition::_normal, exposed as an attribute getter.
local n = m.normal ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
◆ setNormal()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::setNormal |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_normal, exposed as an attribute setter.
m.normal = n ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getColor()
Wrapper function for nkGraphics::VertexComposition::_color, exposed as an attribute getter.
local c = m.color ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
◆ setColor()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::setColor |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_color, exposed as an attribute setter.
m.color = c ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getUv()
Wrapper function for nkGraphics::VertexComposition::_uv, exposed as an attribute getter.
local u = m.uv ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
◆ setUv()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::setUv |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_uv, exposed as an attribute setter.
m.uv = u ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
◆ getTopology()
static nkScripts::OutputValue nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::getTopology |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_topology, exposed as an attribute getter.
local t = m.topology ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkGraphics::PRIMITIVE_TOPOLOGY.
◆ setTopology()
static void nkAstraeus::nkGraphicsWrap::VertexCompositionWrapper::setTopology |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComposition::_topology, exposed as an attribute setter.
m.topology = t ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
The documentation for this class was generated from the following file: