diff options
-rw-r--r-- | src/webGLWorker.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 1656083b..2fa80886 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -502,6 +502,15 @@ function WebGLWorker() { this.getShaderInfoLog = function(shader) { return ''; // optimistic assumption of success; no proxying }; + this.createProgram = function() { + var id = nextId++; + commandBuffer.push('createProgram', -1, id); + return { id: id, what: 'program' }; + }; + this.attachShader = function(program, shader) { + commandBuffer.push('attachShader', 2, program.id, shader.id); + // TODO: save shader list for getAttachedShaders + }; // Setup var postMainLoop = Module['postMainLoop']; |