Robotran C Documentation
Public Member Functions | List of all members
DefaultShapeRenderer Class Reference

DefaultShapeRenderer class is a default implementation of DefaultShapeRenderer. It implements the function of MbsShapeRenderer but do nothing. More...

#include <DefaultShapeRenderer.hh>

Inheritance diagram for DefaultShapeRenderer:
MbsShapeRenderer

Public Member Functions

 DefaultShapeRenderer ()
 Constructor. More...
 
virtual void Init (std::vector< glm::vec3 > vertices, std::vector< glm::vec3 > colors, std::vector< glm::vec3 > normals, std::vector< unsigned int > indexes)
 Init the current shape renderer: create Default object necessary to represnet the shape. More...
 
virtual void Update (glm::mat4 model_mat, glm::mat4 MVP, glm::mat3 M_inv_trans, MbsWorld3D *world_3d, float shiny_mat, glm::vec3 const &specular_mat, float transparency)
 Execute the necessary code to render this shape: Update the Default transform and add it to the pipeline. More...
 
virtual void ShadowDepth (int index)
 
virtual void SetModelMat (glm::mat4 const &model_mat)
 

Detailed Description

DefaultShapeRenderer class is a default implementation of DefaultShapeRenderer. It implements the function of MbsShapeRenderer but do nothing.

Constructor & Destructor Documentation

◆ DefaultShapeRenderer()

Constructor.

Member Function Documentation

◆ Init()

virtual void Init ( std::vector< glm::vec3 >  vertices,
std::vector< glm::vec3 >  colors,
std::vector< glm::vec3 >  normals,
std::vector< unsigned int >  indexes 
)
inlinevirtual

Init the current shape renderer: create Default object necessary to represnet the shape.

Implements MbsShapeRenderer.

◆ SetModelMat()

virtual void SetModelMat ( glm::mat4 const &  model_mat)
inlinevirtual

Implements MbsShapeRenderer.

◆ ShadowDepth()

virtual void ShadowDepth ( int  index)
inlinevirtual

Implements MbsShapeRenderer.

◆ Update()

virtual void Update ( glm::mat4  model_mat,
glm::mat4  MVP,
glm::mat3  M_inv_trans,
MbsWorld3D *  world_3d,
float  shiny_mat,
glm::vec3 const &  specular_mat,
float  transparency 
)
inlinevirtual

Execute the necessary code to render this shape: Update the Default transform and add it to the pipeline.

Implements MbsShapeRenderer.


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