-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
52 lines (43 loc) · 1.19 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* File : main
* Author : KsGin
* Date : 2018/7/20
*/
#include <iostream>
#include "basic-graphics/StraightLine.h"
#include "basic-graphics/Circle.h"
#include "basic-graphics/CoordinateAxis.h"
#include "basic-graphics/QuadraticCruve.h"
#include "include/Turtle.hpp"
#include "fractal-graphics/Pentagram.h"
#include "fractal-graphics/Koch.h"
#include "fractal-graphics/Hilbert.h"
#include "fractal-graphics/LevyC.h"
#include "fractal-graphics/SierpinskiTriangle.h"
#include "fractal-graphics/Dragon.h"
#include "fractal-graphics/Tree.h"
#include "fractal-graphics/StarTails.h"
const int screenWidth = 800;
const int screenHeight = 600;
int main() {
Device *device = new Device();
device->initialize(screenWidth, screenHeight, false);
Turtle turtle = Turtle(device);
//
// Pentagram::Draw(turtle);
// Koch::Draw(turtle);
// Hilbert::Draw(turtle);
// LevyC::Draw(turtle);
// SierpinskiTriangle::Draw(turtle);
// Dragon::Draw(turtle);
// Tree::Draw(turtle);
StarTails::Draw(turtle);
device->updateRender();
device->show();
while (!device->windowShouldClose()) {
device->handleEvent();
}
device->destory();
delete device;
return 0;
}