Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
DrawableObject.h
Go to the documentation of this file.
1 #ifndef __DRAWABLE_OBJECT_H__
2 #define __DRAWABLE_OBJECT_H__
3 
4 #include <glm/glm.hpp>
5 #include <glm/gtc/matrix_transform.hpp>
6 #include <glm/gtc/type_ptr.hpp>
7 
8 namespace vis2
9 {
11 
16  {
17  public:
19 
22  DrawableObject(glm::mat4 & _modelMatrix);
23 
25  virtual ~ DrawableObject();
26 
28  virtual void update(double) = 0;
29 
31 
34  virtual void draw(glm::mat4 & _projectionMatrix) = 0;
35 
36  protected:
37  glm::mat4 modelMatrix;
38 
39  private:
42  };
43 }
44 
45 
46 
47 
48 #endif