diff options
Diffstat (limited to 'src/webGLClient.js')
-rw-r--r-- | src/webGLClient.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js index 5a69c4a4..02756ddb 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -1,6 +1,19 @@ // WebGLWorker client code function WebGLClient() { + function renderCommands(buffer) { + } + + this.onmessage = function(msg) { + dump('client GL got ' + JSON.stringify(msg) + '\n'); + switch(msg.op) { + case 'render': { + renderCommands(msg.commandBuffer); + break; + } + default: throw 'weird gl onmessage ' + JSON.stringify(msg); + } + }; } WebGLClient.prefetch = function() { |