You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
288 B
19 lines
288 B
7 months ago
|
#pragma once
|
||
|
|
||
|
class Drawable;
|
||
|
|
||
|
class RenderTarget {
|
||
|
public:
|
||
|
void draw(const Drawable& drawable);
|
||
|
};
|
||
|
|
||
|
class Drawable {
|
||
|
public:
|
||
7 months ago
|
virtual void draw(RenderTarget& target) const = 0;
|
||
7 months ago
|
};
|
||
|
|
||
|
class Shape : public Drawable {
|
||
|
public:
|
||
7 months ago
|
void draw(RenderTarget& target) const override;
|
||
7 months ago
|
};
|