-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (54 loc) · 1.36 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
<html>
<header>
<style>
body,
html {
padding: 0;
margin: 0;
border: 0;
}
.container {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
}
.side {
width: 200px;
line-height: 10px;
}
.render {
flex: 1;
background-color: #333333;
}
.side button {
color: aliceblue;
border: 0 none;
padding: 3px;
background-color: #333333;
margin: 0 3 0 3;
}
#rendercanvas{
width: 100%;
height: 100%;
}
</style>
<script src="./res/iris.iife.js"></script>
</header>
<body>
<div class="container">
<div class="side">
<h3>Rendering Engine</h3>
<button onclick="DebugCmd('cmd.reload',sampler)">reload</button>
<button onclick="DebugCmd('cmd.passDebug')">pass Debug</button>
</div>
<div class="render">
<canvas width="400" height="300" id="rendercanvas"></canvas>
<script>
var canvas = document.getElementById('rendercanvas');
var sampler = new SampleGame(canvas);
</script>
</div>
</div>
</body>
</html>