Robotran C Documentation
DefaultShapeRenderer.hh
Go to the documentation of this file.
1 
7 #ifndef _DEFAULT_SHAPE_RENDERER_HH_
8 #define _DEFAULT_SHAPE_RENDERER_HH_
9 
10 #include "MbsShapeRenderer.hh"
11 
12 #include <glm.hpp>
13 #include <vector>
14 
15 
16 namespace OpenGLMbs{
17 
22 {
23  public:
24 
27 
30  virtual void Init(std::vector<glm::vec3> vertices,
31  std::vector<glm::vec3> colors,
32  std::vector<glm::vec3> normals,
33  std::vector<unsigned int> indexes){}
34 
37  virtual void Update(glm::mat4 model_mat,
38  glm::mat4 MVP,
39  glm::mat3 M_inv_trans,
40  MbsWorld3D *world_3d,
41  float shiny_mat,
42  glm::vec3 const& specular_mat,
43  float transparency){}
44 
45  virtual void ShadowDepth(int index){}
46 
47  virtual void SetModelMat(glm::mat4 const& model_mat){}
48 
49 };
50 
51 } // close namespace
52 
53 #endif //_DEFAULT_SHAPE_RENDERER_HH_
OpenGLMbs::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)
Init the current shape renderer: create Default object necessary to represnet the shape.
Definition: DefaultShapeRenderer.hh:30
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::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)
Execute the necessary code to render this shape: Update the Default transform and add it to the pipel...
Definition: DefaultShapeRenderer.hh:37
OpenGLMbs::DefaultShapeRenderer
DefaultShapeRenderer class is a default implementation of DefaultShapeRenderer. It implements the fun...
Definition: DefaultShapeRenderer.hh:21
MbsShapeRenderer.hh
MbsShapeRenderer class.
OpenGLMbs::DefaultShapeRenderer::DefaultShapeRenderer
DefaultShapeRenderer()
Constructor.
Definition: DefaultShapeRenderer.hh:26
OpenGLMbs::DefaultShapeRenderer::ShadowDepth
virtual void ShadowDepth(int index)
Definition: DefaultShapeRenderer.hh:45
OpenGLMbs::MbsShapeRenderer
MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D....
Definition: MbsShapeRenderer.hh:29
OpenGLMbs::DefaultShapeRenderer::SetModelMat
virtual void SetModelMat(glm::mat4 const &model_mat)
Definition: DefaultShapeRenderer.hh:47