Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit de8e991

Browse files
committed
Updated docs.
1 parent c510e4e commit de8e991

32 files changed

+3386
-425
lines changed

docs/Camera.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,13 +1855,13 @@ <h5>Parameters:</h5>
18551855
</div>
18561856

18571857
<nav>
1858-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
1858+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Picture.html">Picture</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li><li><a href="UI.html">UI</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
18591859
</nav>
18601860

18611861
<br class="clear">
18621862

18631863
<footer>
1864-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Sun Mar 10 2019 14:24:57 GMT+0200 (Eastern European Standard Time)
1864+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Mar 15 2019 21:55:16 GMT+0200 (Eastern European Standard Time)
18651865
</footer>
18661866

18671867
<script> prettyPrint(); </script>

docs/Camera.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ <h1 class="page-title">Source: Camera.js</h1>
244244
</div>
245245

246246
<nav>
247-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
247+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Picture.html">Picture</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li><li><a href="UI.html">UI</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
248248
</nav>
249249

250250
<br class="clear">
251251

252252
<footer>
253-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Sun Mar 10 2019 14:24:57 GMT+0200 (Eastern European Standard Time)
253+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Mar 15 2019 21:55:16 GMT+0200 (Eastern European Standard Time)
254254
</footer>
255255

256256
<script> prettyPrint(); </script>

docs/Controls.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,13 +2245,13 @@ <h5>Parameters:</h5>
22452245
</div>
22462246

22472247
<nav>
2248-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
2248+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Picture.html">Picture</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li><li><a href="UI.html">UI</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
22492249
</nav>
22502250

22512251
<br class="clear">
22522252

22532253
<footer>
2254-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Sun Mar 10 2019 14:24:57 GMT+0200 (Eastern European Standard Time)
2254+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Mar 15 2019 21:55:16 GMT+0200 (Eastern European Standard Time)
22552255
</footer>
22562256

22572257
<script> prettyPrint(); </script>

docs/Controls.js.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ <h1 class="page-title">Source: Controls.js</h1>
178178
return !this._rebind
179179
};
180180

181-
engine.canvas.setAttribute('tabindex','0');
181+
engine.div.setAttribute('tabindex','0');
182182

183183
let lastMousePosition = null
184184

185-
engine.canvas.addEventListener('mousemove', (event) => {
185+
engine.div.addEventListener('mousemove', (event) => {
186186
if (!this.pointerLocked) {
187-
let mousePos = engine.canvas.getBoundingClientRect()
187+
let mousePos = engine.div.getBoundingClientRect()
188188
let x = event.clientX - mousePos.left
189189
let y = event.clientY - mousePos.top
190190
this.mouse.x = x
@@ -208,64 +208,64 @@ <h1 class="page-title">Source: Controls.js</h1>
208208
}, false);
209209

210210
window.addEventListener('mousemove', (event) => {
211-
let canvasPos = engine.canvas.getBoundingClientRect()
211+
let canvasPos = engine.div.getBoundingClientRect()
212212
let x = event.clientX
213213
let y = event.clientY
214214
if (x &lt; canvasPos.right &amp;&amp; x > canvasPos.left &amp;&amp;
215215
y &lt; canvasPos.bottom &amp;&amp; y > canvasPos.top ) {
216216
this.mouseOverCanvas = true
217217
if (!this._focusOnlyIfClick &amp;&amp; !this.isFocused) {
218-
engine.canvas.focus()
218+
engine.div.focus()
219219
}
220220
}
221221
else {
222222
this.mouseOverCanvas = false
223223
if (!this._focusOnlyIfClick) {
224-
engine.canvas.blur()
224+
engine.div.blur()
225225
}
226226
}
227227
})
228228

229-
engine.canvas.onclick = () => {
229+
engine.div.onclick = () => {
230230
if (this._focusOnlyIfClick &amp;&amp; !this.isFocused) {
231-
engine.canvas.focus()
231+
engine.div.focus()
232232
}
233233
if (this._lockPointer) {
234-
engine.canvas.requestPointerLock();
234+
engine.div.requestPointerLock();
235235
}
236236
}
237237

238-
engine.canvas.onmousedown = (event) => {
238+
engine.div.onmousedown = (event) => {
239239
this.mouse.buttons[event.button] = true
240240
if (this._mouseHandlers[2 + event.button] != null) this._mouseHandlers[2 + event.button](event)
241241
return false
242242
}
243243

244-
engine.canvas.onmouseup = (event) => {
244+
engine.div.onmouseup = (event) => {
245245
this.mouse.buttons[event.button] = false
246246
return false
247247
}
248248

249-
engine.canvas.oncontextmenu = function() {
249+
engine.div.oncontextmenu = function() {
250250
return false;
251251
}
252252

253-
engine.canvas.onblur = () => {
253+
engine.div.onblur = () => {
254254
this.isFocused = false
255255
for (let i = 0; i &lt; this._focusHandlers.length; i++) {
256256
this._blurHandlers[i]()
257257
}
258258
}
259259

260-
engine.canvas.onfocus = () => {
260+
engine.div.onfocus = () => {
261261
this.isFocused = true
262262
for (let i = 0; i &lt; this._focusHandlers.length; i++) {
263263
this._focusHandlers[i]()
264264
}
265265
}
266266

267267
document.addEventListener('pointerlockchange', () => {
268-
if(document.pointerLockElement === engine.canvas){
268+
if(document.pointerLockElement === engine.div){
269269
this.pointerLocked = true
270270
}
271271
else {
@@ -354,7 +354,7 @@ <h1 class="page-title">Source: Controls.js</h1>
354354
* @public
355355
*/
356356
onMouseMove(handler) {
357-
this.engine.canvas.addEventListener('mousemove', handler, false);
357+
this.engine.div.addEventListener('mousemove', handler, false);
358358
}
359359

360360
/**
@@ -363,7 +363,7 @@ <h1 class="page-title">Source: Controls.js</h1>
363363
* @public
364364
*/
365365
onContextMenu (handler) {
366-
this.engine.canvas.oncontextmenu = handler
366+
this.engine.div.oncontextmenu = handler
367367
}
368368

369369
/**
@@ -386,13 +386,13 @@ <h1 class="page-title">Source: Controls.js</h1>
386386
</div>
387387

388388
<nav>
389-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
389+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a></li><li><a href="module-Matrixes.html">Matrixes</a></li><li><a href="module-Vectors.html">Vectors</a></li></ul><h3>Classes</h3><ul><li><a href="Camera.html">Camera</a></li><li><a href="Controls.html">Controls</a></li><li><a href="Cube.html">Cube</a></li><li><a href="Debugger.html">Debugger</a></li><li><a href="Engine.html">Engine</a></li><li><a href="module-Matrixes.Matrix.html">Matrix</a></li><li><a href="Object.html">Object</a></li><li><a href="Picture.html">Picture</a></li><li><a href="Polygon.html">Polygon</a></li><li><a href="Rect.html">Rect</a></li><li><a href="Texture.html">Texture</a></li><li><a href="UI.html">UI</a></li></ul><h3>Global</h3><ul><li><a href="global.html#compileShader">compileShader</a></li><li><a href="global.html#createWebGLProgram">createWebGLProgram</a></li><li><a href="global.html#getWebGL">getWebGL</a></li><li><a href="global.html#getWebGLById">getWebGLById</a></li></ul>
390390
</nav>
391391

392392
<br class="clear">
393393

394394
<footer>
395-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Sun Mar 10 2019 14:24:57 GMT+0200 (Eastern European Standard Time)
395+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Mar 15 2019 21:55:16 GMT+0200 (Eastern European Standard Time)
396396
</footer>
397397

398398
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)