PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
GLDrawable.hpp
Go to the documentation of this file.
1 #ifndef GLDRAWABLE_HPP
2 #define GLDRAWABLE_HPP
3 
4 #include "GL/glew.h"
5 #include "core/GLStates.hpp"
6 
7 namespace pk
8 {
9 
17 {
18  public:
24  GLDrawable();
25 
26  virtual ~GLDrawable();
27 
33  virtual void draw(GLStates &states) = 0;
34 };
35 
36 }
37 
38 #endif // GLDRAWABLE_HPP
Definition: Game.hpp:7
Definition: GLDrawable.hpp:16
virtual void draw(GLStates &states)=0
Draw the OpenGL drawable object.
virtual ~GLDrawable()
Stores the states used to draw OpenGL objects.
Definition: GLStates.hpp:16