Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
GeometricObject.h
Go to the documentation of this file.
1 #ifndef __GEOMETRIC_OBJECT_H__
2 #define __GEOMETRIC_OBJECT_H__
3 
4 #include <glew.h>
5 #include "DrawableObject.h"
6 #include "../visualisation/Shader.h"
7 
8 namespace vis2
9 {
11 
15  {
16  public:
18 
29  GeometricObject( glm::mat4 _modelMatrix,
30  Shader* _shader,
31  const float* _positions_Ptr,
32  const unsigned int _pos_size,
33  const float* _normals_Ptr,
34  const unsigned int _norm_size,
35  const unsigned int* _index_Ptr,
36  const unsigned int _ind_size);
37 
39 
40  virtual ~GeometricObject();
41 
43  virtual void update(double _deltaT) = 0;
44 
46 
51  virtual void draw(glm::mat4 & _projectionMatrix);
52 
53  protected:
54  unsigned int index_count;
55  GLuint vao_handle;
59 
61 
62  private:
65  };
66 }
67 
68 
69 #endif