4 Copyright (c) 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
10 <title>Rotating Cube
</title>
11 <link rel=
"stylesheet" href=
"//fonts.googleapis.com/css?family=Open+Sans:300,700">
12 <link href=
"/static/css/out/site.css" rel=
"stylesheet">
13 <script type=
"text/javascript" src=
"example.js"></script>
18 <h1>Rotating Cube
</h1>
24 An example showing rendering via OpenGLES2 in a Native Client module.
27 Note: the C++ source code of this demo is available in the Native Client SDK (
<tt>examples/api/graphics_3d
</tt>).
30 FPS:
<span id=
"fps">0</span>
33 <div class=
"panel panel-info">
35 <div class=
"panel-body">
36 <table id=
"config" cellspacing=
"0" cellpadding=
"0">
39 <td class=
"name">X Angle:
</td>
41 <input type=
"range" id=
"xAngle" min=
"0" max=
"360" step=
"1"
46 <td class=
"name">Y Angle:
</td>
48 <input type=
"range" id=
"yAngle" min=
"0" max=
"360" step=
"1"
53 <td class=
"name">Animating:
</td>
57 <input type=
"radio" id=
"animateOff" value=
"false">
61 <input type=
"radio" id=
"animateOn" value=
"true"
72 <div class=
"Demo-body">
73 <div id=
"listener" class=
"Demo-content"></div>
76 <div id=
"loading-cover">
78 <div id=
"statusField"></div>
79 <div id=
"progress" class=
"progress progress-striped active">
80 <div id=
"progress-bar" class=
"progress-bar" role=
"progressbar" aria-valuenow=
"0" aria-valuemin=
"0" aria-valuemax=
"100" style=
"width: 0%">