From d781d5a3c1ec6872361db2a15786dfc0db9780f3 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Tue, 5 Oct 2021 06:35:09 -0400 Subject: Working tree render, now just have to do the leaves --- themes/dist/output.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'themes/dist/output.js') diff --git a/themes/dist/output.js b/themes/dist/output.js index 01fdfb4..4e2bcc0 100644 --- a/themes/dist/output.js +++ b/themes/dist/output.js @@ -2520,6 +2520,8 @@ var ASM_CONSTS = { GLctx.currentElementArrayBufferBinding = ibo ? (ibo.name | 0) : 0; } + function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) } + function _glBufferData(target, size, data, usage) { if (GL.currentContext.version >= 2) { // WebGL 2 provides new garbage-free entry points to call to WebGL. Use those always when possible. @@ -2535,6 +2537,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) } @@ -2996,7 +3006,9 @@ var asmLibraryArg = { "glAttachShader": _glAttachShader, "glBindBuffer": _glBindBuffer, "glBindVertexArray": _glBindVertexArray, + "glBlendFunc": _glBlendFunc, "glBufferData": _glBufferData, + "glBufferSubData": _glBufferSubData, "glClear": _glClear, "glClearColor": _glClearColor, "glClearDepth": _glClearDepth, -- cgit v1.2.1