Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::MeshRender Class Reference

#include <StkMeshRender.h>

Public Member Functions

 MeshRender (std::shared_ptr< Mesh > mesh, const STK::Matrix4x4f &transform)
 
void setTransform (const STK::Matrix4x4f &transform)
 
const STK::Matrix4x4fgetTransform () const
 
void setMesh (std::shared_ptr< Mesh > mesh)
 
std::shared_ptr< MeshgetMesh ()
 
std::shared_ptr< const MeshgetMesh () 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< Meshmesh_
 
std::vector< STK::Matrix4x4fbone_matrices_
 

Detailed Description

MeshRender - Renderer class for a single mesh item This class is used to render a single mesh item with a given transform.

Member Function Documentation

◆ calcMinBBDistance()

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


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