Walls And Holes  1
abstractdrawableglobject.h
Go to the documentation of this file.
1 #ifndef DRAWABLEOBJECT_H
2 #define DRAWABLEOBJECT_H
3 
4 #include <QMatrix4x4>
5 
14 public:
16 
21  virtual void initializeGL() = 0;
22 
33  virtual void draw(QMatrix4x4 projection, QMatrix4x4 transformation) = 0;
34 };
35 
36 #endif // DRAWABLEOBJECT_H
virtual ~AbstractDrawableGLObject()
Definition: abstractdrawableglobject.h:15
virtual void initializeGL()=0
Called when this object is to be used with a new OpenGL context. Must be called before the first draw...
Abstract class for objects with special OpenGL rendering.
Definition: abstractdrawableglobject.h:13
virtual void draw(QMatrix4x4 projection, QMatrix4x4 transformation)=0
Performs OpenGL calls to draw the object, assuming a context is bound.