![]() |
Maria GDK 5.0.0.910
Documentation of native code in develop branch
|
#include <StkMeshRender.h>
Public Member Functions | |
| MeshRender (std::shared_ptr< Mesh > mesh, const STK::Matrix4x4f &transform) | |
| void | setTransform (const STK::Matrix4x4f &transform) |
| const STK::Matrix4x4f & | getTransform () const |
| void | setMesh (std::shared_ptr< Mesh > mesh) |
| std::shared_ptr< Mesh > | getMesh () |
| std::shared_ptr< const Mesh > | getMesh () const |
| void | calcBoneMatrices () |
| void | redraw (ShaderProgram &shader, const STK::Matrix4x4f &mv, bool wireframe) |
| int | getRenderMask () const |
| double | calcMinBBDistance (const STK::Matrix4x4f &mv) const |
Protected Attributes | |
| STK::Matrix4x4f | transform_ |
| std::shared_ptr< Mesh > | mesh_ |
| std::vector< STK::Matrix4x4f > | bone_matrices_ |
MeshRender - Renderer class for a single mesh item This class is used to render a single mesh item with a given transform.
| double MeshRender::calcMinBBDistance | ( | const STK::Matrix4x4f & | mv | ) | const |
Calculate the minimum bounding box distance to this mesh. This method will transform the bounding box and return the closest corner