|
Robotran C Documentation
|
Go to the documentation of this file.
8 #ifndef _MBS_SHAPE_RENDERER_HH_
9 #define _MBS_SHAPE_RENDERER_HH_
37 virtual void Init(std::vector<glm::vec3> vertices,
38 std::vector<glm::vec3> colors,
39 std::vector<glm::vec3> normals,
40 std::vector<unsigned int> indexes) = 0;
43 virtual void Update(glm::mat4 model_mat,
45 glm::mat3 M_inv_trans,
48 glm::vec3
const& specular_mat,
49 float transparency) = 0;
53 virtual void SetModelMat(glm::mat4
const& model_mat) = 0;
59 #endif //_MBS_SHAPE_RENDERER_HH_
Definition: MpegFrameCaptureOptions.hh:6
virtual ~MbsShapeRenderer()
Destructor.
Definition: MbsShapeRenderer.hh:34
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.
MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D....
Definition: MbsShapeRenderer.hh:29
virtual void ShadowDepth(int index)=0
virtual void SetModelMat(glm::mat4 const &model_mat)=0
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.