SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SP::SPMeshNode Class Reference
Inheritance diagram for SP::SPMeshNode:
Inheritance graph
[legend]

Public Member Functions

 SPMeshNode (IAnimatedMesh *mesh, ISceneNode *parent, ISceneManager *mgr, s32 id, const std::string &debug_name, const core::vector3df &position=core::vector3df(), const core::vector3df &rotation=core::vector3df(), const core::vector3df &scale=core::vector3df(1, 1, 1), std::shared_ptr< GE::GERenderInfo > render_info=nullptr)
 
virtual void render ()
 
virtual void setMesh (irr::scene::IAnimatedMesh *mesh)
 
virtual void OnAnimate (u32 time_ms)
 
virtual void animateJoints (bool calculate_absolute_positions=true)
 
virtual irr::scene::IMesh * getMeshForCurrentFrame ()
 
virtual IBoneSceneNode * getJointNode (const c8 *joint_name)
 
virtual IBoneSceneNode * getJointNode (u32 joint_id)
 
virtual void setJointMode (E_JOINT_UPDATE_ON_RENDER mode)
 
virtual void checkJoints ()
 
SPMeshgetSPM () const
 
int getTotalJoints () const
 
void setSkinningOffset (int offset)
 
int getSkinningOffset () const
 
void setAnimationState (bool val)
 
bool getAnimationState () const
 
bool isInShadowPass () const
 
void setInShadowPass (const bool is_in_shadowpass)
 
SPShadergetShader (unsigned mesh_buffer_id) const
 
const core::matrix4 * getSkinningMatrices () const
 
GE::GERenderInfo * getRenderInfo (unsigned mb_id) const
 
virtual void resetFirstRenderInfo (std::shared_ptr< GE::GERenderInfo > ri)
 
void setGlowColor (const video::SColorf &color)
 
const video::SColorf & getGlowColor () const
 
bool hasGlowColor () const
 
std::array< float, 2 > & getTextureMatrix (unsigned mb_id)
 
void setTextureMatrix (unsigned mb_id, const std::array< float, 2 > &tm)
 
virtual void setTransitionTime (f32 Time)
 

Private Member Functions

void cleanRenderInfo ()
 
void cleanJoints ()
 

Private Attributes

std::vector< std::shared_ptr< GE::GERenderInfo > > m_render_info
 
std::shared_ptr< GE::GERenderInfo > m_first_render_info
 
std::unordered_map< std::string, IBoneSceneNode * > m_joint_nodes
 
SPMeshm_mesh
 
int m_skinning_offset
 
bool m_animated
 
bool m_is_in_shadowpass
 
float m_saved_transition_frame
 
std::vector< core::matrix4 > m_skinning_matrices
 
video::SColorf m_glow_color
 
std::vector< std::array< float, 2 > > m_texture_matrices
 

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