05_OO: Schneeflocken
This commit is contained in:
parent
5b458386ac
commit
211059683f
|
@ -6,7 +6,8 @@ cmake-build-debug
|
||||||
*.save
|
*.save
|
||||||
bin/
|
bin/
|
||||||
/CMakeFiles
|
/CMakeFiles
|
||||||
|
src/CMakeFiles
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
Makefile
|
Makefile
|
||||||
/C
|
/C
|
||||||
|
|
|
@ -8,7 +8,6 @@ protected:
|
||||||
int _radius;
|
int _radius;
|
||||||
public:
|
public:
|
||||||
explicit Circle(int x = 0, int y = 0, int radius = 0, Colors color = Colors::GREEN);
|
explicit Circle(int x = 0, int y = 0, int radius = 0, Colors color = Colors::GREEN);
|
||||||
|
|
||||||
void draw() override;
|
void draw() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,10 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
shapes.push_back(new Rectangle(5, 21, 10, 10, Colors::MAGENTA));
|
shapes.push_back(new Rectangle(5, 21, 10, 10, Colors::MAGENTA));
|
||||||
|
|
||||||
|
shapes.push_back(new Point(5, 10, Colors::WHITE));
|
||||||
|
shapes.push_back(new Point(15, 7, Colors::WHITE));
|
||||||
|
shapes.push_back(new Point(7, 5, Colors::WHITE));
|
||||||
|
|
||||||
|
|
||||||
auto *s = new Scene(shapes);
|
auto *s = new Scene(shapes);
|
||||||
s->draw();
|
s->draw();
|
||||||
|
|
Loading…
Reference in New Issue