Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
drawable.h
1 
9 #ifndef DRAWABLE_DEFINED
10 #define DRAWABLE_DEFINED
11 
12 #include "core.h"
13 #include "shader.h"
14 #include <Math\vec2.h>
15 #include <Renderer\RenderWindow.h>
16 
17 namespace rune{
18 
19 class RUNE_ENGINE Drawable
20 {
21 
22 public:
23 
25  virtual void draw(rune::RenderWindow&) = 0;
26 
27 };
28 }
29 
30 #endif
rune::Drawable
Interface class for creating something that can be drawn to the screen.
Definition: drawable.h:20
rune::Drawable::draw
virtual void draw(rune::RenderWindow &)=0
Draw the object to a render window.
rune::RenderWindow
A window that the game can be drawn to.
Definition: renderWindow.h:26
rune
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21