-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (93 loc) · 2.97 KB
/
index.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<title>Wintermoon Framework</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Keywords" content="wintermoon, framework, sdl, opengl, openal, qt, 2d, engine, game, lua, luabind, boost, stl, c++, physicsfs"/>
<meta http-equiv="Author" content="Rodrigo Delduca" />
<style type="text/css">
pre {
font-family: monospace;
color: #f6f3e8;
background-color: #000000;
}
body {
font-family: monospace;
color: #f6f3e8;
background-color: #000000;
}
.Comment {
color: #7c7c7c;
}
.Constant {
color: #99cc99;
}
.String {
color: #a8ff60;
}
.Number {
color: #ff73fd;
}
.Statement {
color: #6699cc;
}
.Type {
color: #ffffb6;
}
div.center {
text-align: center;
}
.image {
width: 200px;
height: 200px;
}
a:link,
a:visited,
a:active {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="center">
<img class="image" alt="Wintermoon Framework" src="wintermoon.jpg" />
</div>
<a href="https://github.com/wintermoon/wintermoon">
<img src="forkme.svg" style="position: absolute; top: 0; right: 0" alt="Fork Wintermoon on GitHub"/>
</a>
<pre>
<span class="Type">class</span> Main : <span class="Statement">public</span> Application, <span class="Statement">public</span> EventListener
{
<span class="Statement">public</span>:
<span class="Type">virtual</span> <span class="Type">int</span> main(<span class="Type">const</span> List<String>& args)
{
root = Root::instance();
video = root->videoManager();
input = root->inputManager();
video->init(Size(<span class="Number">640</span>, <span class="Number">480</span>), <span class="Number">32</span>, <span class="String">"Hello World"</span>, <span class="Constant">false</span>);
<span class="Statement">while</span> (root->running())
{
input->capture();
video->beginDraw();
<span class="Comment">// draw everthing</span>
video->endDraw();
}
<span class="Statement">return</span> <span class="Number">0</span>;
}
<span class="Statement">protected</span>:
<span class="Type">virtual</span> <span class="Type">void</span> quitEvent()
{
root->shutdown();
}
<span class="Statement">private</span>:
Root* root;
VideoManager* video;
InputManager* input;
} app;
</pre>
</body>
</html>