mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 03:21:35 +08:00
36 lines
1.6 KiB
HTML
36 lines
1.6 KiB
HTML
<html>
|
|
<script src="../../build/spine-webgl.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
|
|
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
|
|
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
|
|
<style>
|
|
* { margin: 0; padding: 0; }
|
|
body, html { height: 100% }
|
|
canvas { position: absolute; width: 100% ;height: 100%; }
|
|
.slider { width: 50% }
|
|
</style>
|
|
<body>
|
|
<canvas id="meshesdemo-canvas"></canvas>
|
|
<center>
|
|
<div style="position: fixed; top: 0; width: 100%">
|
|
<select id="meshesdemo-active-skeleton"></select></br>
|
|
<span style="color: #fff">Draw Bones</span>
|
|
<input type="checkbox" id="meshesdemo-drawbonescheckbox" style="color: #fff;" checked="true"></input>
|
|
<span style="color: #fff">Draw Regions</span>
|
|
<input type="checkbox" id="meshesdemo-drawregionscheckbox" style="color: #fff;" checked="true"></input>
|
|
<span style="color: #fff">Draw Mesh Hull</span>
|
|
<input type="checkbox" id="meshesdemo-drawmeshhullcheckbox" style="color: #fff;" checked="true"></input>
|
|
<span style="color: #fff">Draw Mesh Triangles</span>
|
|
<input type="checkbox" id="meshesdemo-drawmeshtrianglescheckbox" style="color: #fff;" checked="true"></input>
|
|
<br>
|
|
<input id="meshesdemo-playbutton" type="button" value="Pause"></input>
|
|
<div id="meshesdemo-timeline" class="slider"></input>
|
|
</div>
|
|
</center>
|
|
<script src="meshes.js"></script>
|
|
<script>
|
|
meshesDemo();
|
|
</script>
|
|
</body>
|
|
</html> |