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  std::vector<glm::vec3> line_vertices,
35  std::vector<glm::vec3> line_colors,
36  std::vector<unsigned int> line_indexes){}
37 
40  virtual void Update(glm::mat4 model_mat,
41  glm::mat4 MVP,
42  glm::mat3 M_inv_trans,
43  MbsWorld3D *world_3d,
44  float shiny_mat,
45  glm::vec3 const& specular_mat,
46  float transparency){}
47 
48  virtual void ShadowDepth(int index){}
49 
50  virtual void SetModelMat(glm::mat4 const& model_mat){}
51 
52 };
53 
54 } // close namespace
55 
56 #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, std::vector< glm::vec3 > line_vertices, std::vector< glm::vec3 > line_colors, std::vector< unsigned int > line_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:40
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:48
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:50