Skip to content

Commit

Permalink
Remove parsers from handlers, and custom textures for sanity client
Browse files Browse the repository at this point in the history
- Parsers are no longer stored in MDX models, M3 models, and BLP textures, to save some memory.
- In addition, they can now use parsers directly when loading.
- The sanity test client now tries to load custom textures into models. That is, if you load a model and its custom textures (order doesn't matter), the model will render properly.
  • Loading branch information
flowtsohg committed Sep 30, 2019
1 parent 12dd255 commit d08e565
Show file tree
Hide file tree
Showing 11 changed files with 317 additions and 159 deletions.
34 changes: 33 additions & 1 deletion clients/sanitytest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,24 @@
font-size: 2ch;
}

#canvas {
#canvas,
#controls {
position: absolute;
left: 0px;
top: 0px;
width: 40%;
height: 50%;
}

#canvas {
z-index: 0;
}

#controls {
z-index: 1;
pointer-events: none;
}

#sourceview {
position: absolute;
left: 0px;
Expand Down Expand Up @@ -126,13 +136,35 @@
user-select: none;
pointer-events: none;
}

.inputs {
pointer-events: all;
}
</style>
</head>

<body>
<div id="status"></div>

<canvas id="canvas"></canvas>
<div id="controls">
<button id="animation_toggle" class="inputs">Play/Pause</button>

<!-- <br>
<label for="animation_control">Animation</label>
<select id="animation_control" class="inputs">
<option default value="-1">None</option>
</select>
<br>
<label for="animation_loop_control">Looping</label>
<select id="animation_loop_control" class="inputs">
<option default>Yes</option>
<option>No</option>
</select> -->
</div>
<pre id="sourceview"></pre>
<div id="tests"></div>
<div id="sourcemap"></div>
Expand Down
Loading

0 comments on commit d08e565

Please sign in to comment.