change window draw function to IDrawable

This commit is contained in:
Clément Le Bihan
2021-05-26 16:38:27 +02:00
parent c12ecf6d8b
commit b2659c3272
7 changed files with 14 additions and 21 deletions
@@ -10,6 +10,7 @@
#include <raylib.h>
#include "Vector/Vector2.hpp"
#include "Image.hpp"
#include "Drawables/IDrawable.hpp"
#include "Color.hpp"
+1 -3
View File
@@ -8,20 +8,18 @@
#ifndef IDRAWABLE_HPP_
#define IDRAWABLE_HPP_
#include "Drawables/Image.hpp"
#include "Window.hpp"
namespace RAY
{
class Window;
class Image;
namespace Drawables {
//! @brief Interface for any drawable
class IDrawable {
public:
virtual ~IDrawable() = default;
virtual void drawOn(RAY::Window &) = 0;
virtual void drawOn(Window &) = 0;
protected:
private:
};