Robotran C Documentation
Public Member Functions | List of all members
MbsShapeRenderer Class Referenceabstract

MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D. Three implementation are currently available: More...

#include <MbsShapeRenderer.hh>

Inheritance diagram for MbsShapeRenderer:
DefaultShapeRenderer OglShapeRenderer

Public Member Functions

virtual ~MbsShapeRenderer ()
 Destructor. More...
 
virtual void Init (std::vector< glm::vec3 > vertices, std::vector< glm::vec3 > colors, std::vector< glm::vec3 > normals, std::vector< unsigned int > indexes)=0
 Init the current shape renderer. 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)=0
 Execute the necessary code to render this shape. More...
 
virtual void ShadowDepth (int index)=0
 
virtual void SetModelMat (glm::mat4 const &model_mat)=0
 

Detailed Description

MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D. Three implementation are currently available:

Constructor & Destructor Documentation

◆ ~MbsShapeRenderer()

virtual ~MbsShapeRenderer ( )
inlinevirtual

Destructor.

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 
)
pure virtual

Init the current shape renderer.

Implemented in OglShapeRenderer, and DefaultShapeRenderer.

◆ SetModelMat()

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

Implemented in OglShapeRenderer, and DefaultShapeRenderer.

◆ ShadowDepth()

virtual void ShadowDepth ( int  index)
pure virtual

Implemented in OglShapeRenderer, and DefaultShapeRenderer.

◆ 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 
)
pure virtual

Execute the necessary code to render this shape.

Implemented in OglShapeRenderer, and DefaultShapeRenderer.


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