mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 03:12:01 +00:00
change window draw function to IDrawable
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <raylib.h>
|
||||
#include "Vector/Vector2.hpp"
|
||||
#include "Image.hpp"
|
||||
#include "Drawables/IDrawable.hpp"
|
||||
#include "Color.hpp"
|
||||
|
||||
|
||||
@@ -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:
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user