aboutsummaryrefslogtreecommitdiff
path: root/include/mglpp/graphics/Drawable.hpp
blob: 3aa8d4f97f8ec6f63a149fe41a3084dcc9cd6620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MGLPP_DRAWABLE_HPP
#define MGLPP_DRAWABLE_HPP

#include "Color.hpp"
#include "../system/vec.hpp"

namespace mgl {
    class Window;
    class Drawable {
        friend class Window;
    public:
        virtual ~Drawable() = default;
        virtual void set_position(vec2f position) = 0;
        virtual void set_color(Color color) = 0;
    protected:
        virtual void draw(Window &window) = 0;
    };
}

#endif /* MGLPP_DRAWABLE_HPP */