summaryrefslogtreecommitdiff
path: root/2d/softbody/softbody_2/dist
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-01-22 13:57:55 -0500
committermattkae <mattkae@protonmail.com>2022-01-22 13:57:55 -0500
commit3f3d1ed1cba61015aa47a6ad9812ae0d30316cc5 (patch)
treeba6f5d8aa5114de81f331828ef877a6f4ddebfda /2d/softbody/softbody_2/dist
parent19defa9be56588803bbae0f38e2f271a91b9d690 (diff)
(mkosarek) Added dots to the spring bodied rectangle
Diffstat (limited to '2d/softbody/softbody_2/dist')
-rw-r--r--2d/softbody/softbody_2/dist/output.js9
-rwxr-xr-x2d/softbody/softbody_2/dist/output.wasmbin33390 -> 36383 bytes
2 files changed, 9 insertions, 0 deletions
diff --git a/2d/softbody/softbody_2/dist/output.js b/2d/softbody/softbody_2/dist/output.js
index 864fed6..2502d5e 100644
--- a/2d/softbody/softbody_2/dist/output.js
+++ b/2d/softbody/softbody_2/dist/output.js
@@ -2573,6 +2573,14 @@ var ASM_CONSTS = {
}
}
+ function _glBufferSubData(target, offset, size, data) {
+ if (GL.currentContext.version >= 2) { // WebGL 2 provides new garbage-free entry points to call to WebGL. Use those always when possible.
+ GLctx.bufferSubData(target, offset, HEAPU8, data, size);
+ return;
+ }
+ GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
+ }
+
function _glClear(x0) { GLctx['clear'](x0) }
function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
@@ -3062,6 +3070,7 @@ var asmLibraryArg = {
"glBindBuffer": _glBindBuffer,
"glBindVertexArray": _glBindVertexArray,
"glBufferData": _glBufferData,
+ "glBufferSubData": _glBufferSubData,
"glClear": _glClear,
"glClearColor": _glClearColor,
"glClearDepth": _glClearDepth,
diff --git a/2d/softbody/softbody_2/dist/output.wasm b/2d/softbody/softbody_2/dist/output.wasm
index 8f52a3d..4d1241e 100755
--- a/2d/softbody/softbody_2/dist/output.wasm
+++ b/2d/softbody/softbody_2/dist/output.wasm
Binary files differ