IDrawable.h
Go to the documentation of this file.
1 #ifndef B_I_DRAWABLE_H
2 #define B_I_DRAWABLE_H
3 
4 #include "Renderer_GL.h"
5 
9 class IDrawable
10 {
11 public:
12 
15  virtual ~IDrawable(){}
16 
20  virtual void draw(GLenum mode) = 0;
21 
26  virtual void drawInstance(const std::string &instanceName, GLenum mode) = 0;
27 
28 };
29 
30 typedef std::shared_ptr<IDrawable> DrawablePtr;
31 
32 #endif /* defined(B_I_DRAWABLE_H) */
virtual void drawInstance(const std::string &instanceName, GLenum mode)=0
Draws an instance of the object to the screen.
An interface for drawable objects.
Definition: IDrawable.h:9
std::shared_ptr< IDrawable > DrawablePtr
Definition: IDrawable.h:30
virtual void draw(GLenum mode)=0
Draws an object to the screen.
virtual ~IDrawable()
Virtual destructor.
Definition: IDrawable.h:15