Wraps a nkGraphics::BoundingBox and offers functions for use in scripting.
More...
Wraps a nkGraphics::BoundingBox 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. |
◆ constructor()
static void* nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::constructor |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for the constructor of the user type.
local t = nkGraphics.BoundingBox.new() ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ newCube()
Wrapper function for the constructor of the user type. Will map to the constructor resulting in a cube.
local t = nkGraphics.BoundingBox.newCube(center, halfSide) ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ newBox()
Wrapper function for the constructor of the user type. Will map to the constructor resulting in a box.
local t = nkGraphics.BoundingBox.newBox(center, axisAlignedHalfSide) ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ destructor()
static void nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::destructor |
( |
void * |
toDestroy | ) |
|
|
static |
Wrapper function for the destructor of the user type.
- Parameters
-
toDestroy | The data that has to be freed. |
◆ getCenter()
◆ checkAgainst()
The documentation for this class was generated from the following file: