DefaultShapeRenderer class is a default implementation of DefaultShapeRenderer. It implements the function of MbsShapeRenderer but do nothing.
More...
#include <DefaultShapeRenderer.hh>
|
| 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) |
|
DefaultShapeRenderer class is a default implementation of DefaultShapeRenderer. It implements the function of MbsShapeRenderer but do nothing.
◆ DefaultShapeRenderer()
◆ 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 |
◆ ShadowDepth()
virtual void ShadowDepth |
( |
int |
index | ) |
|
|
inlinevirtual |
◆ 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: