-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (74 loc) · 2.47 KB
/
Copy pathindex.html
File metadata and controls
89 lines (74 loc) · 2.47 KB
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
<!doctype html>
<html>
<!--
-->
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<title>glQuery Samples</title>
<meta name='description' content=''>
<meta name='author' content='Rehno Lindeque'>
<link rel="shortcut icon" href="/favicon.ico">
<!-- Stylesheet -->
<style type='text/css' media='screen'>
/* Resets */
/* Normalization (taken from http://necolas.github.com/normalize.css/ and a little bit from html5 boilerplate) */
/* General styling */
canvas {
display: block;
}
/* Application styling */
#viewport0,#viewport1 {
display: inline-block;
}
</style>
</head>
<body>
<!-- Screen layout -->
<div id='scenejsLog'></div>
<div id='main-layout'>
<div id='viewport0'>
<!-- -->
<canvas id='canvas0' width='512' height='512'>
<p>This application requires a browser that supports the<a href='http://www.w3.org/html/wg/html5/'>HTML5</a><canvas> feature.</p>
</canvas>
<!-- -->
<textbox id='sample0-sourcecode'>Sample 1</textbox>
</div>
<div id='viewport1'>
<!-- -->
<canvas id='canvas1' width='512' height='512'>
<p>This application requires a browser that supports the<a href='http://www.w3.org/html/wg/html5/'>HTML5</a><canvas> feature.</p>
</canvas>
<!-- -->
<textbox id='sample1-sourcecode'>Sample 2</textbox>
</div>
</div>
<!-- Prompt IE users to install Chrome Frame. chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if IE]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
<!-- Framework -->
<!-- Resources -->
<script src='static/lib/glquery/glquery.js'></script>
<script src='static/lib/glquery/glquery.math.module.js'></script>
<script src='static/lib/scenejs/scenejs.js'></script>
<!-- Application logic -->
<script>
// Initialize sample framework
var
samples = []
register = function(sampleId, engineId, sampleDescription, callback) {
samples.push(callback);
};
</script>
<script src='src/glquery/camera-0.js'></script>
<script src='src/scenejs/camera-0.js'></script>
<script>
// Run selected samples
samples[0]('canvas0', 'experimental-webgl');
samples[1]('canvas1', 'experimental-webgl');
</script>
</body>
</html>