function RenderThread() { if(arguments[0] != "__skip_ptr__") { this.__ptr = Polycode.RenderThread() } } RenderThread.JOB_REQUEST_CONTEXT_CHANGE = 0 RenderThread.JOB_PROCESS_DRAW_BUFFER = 2 RenderThread.JOB_END_FRAME = 3 RenderThread.JOB_BEGIN_FRAME = 6 RenderThread.JOB_DESTROY_TEXTURE = 8 RenderThread.JOB_DESTROY_SHADER = 9 RenderThread.JOB_DESTROY_PROGRAM = 10 RenderThread.JOB_DESTROY_SUBMESH_BUFFER = 11 RenderThread.JOB_DESTROY_RENDER_BUFFER = 13 RenderThread.JOB_SET_TEXTURE_PARAM = 14 Duktape.fin(RenderThread.prototype, function (x) { if (x === RenderThread.prototype) { return; } Polycode.RenderThread__delete(x.__ptr) }) RenderThread.prototype.setGraphicsInterface = function(core,graphicsInterface) { Polycode.RenderThread_setGraphicsInterface(this.__ptr, core.__ptr, graphicsInterface.__ptr) } RenderThread.prototype.runThread = function() { Polycode.RenderThread_runThread(this.__ptr) } RenderThread.prototype.updateRenderThread = function() { Polycode.RenderThread_updateRenderThread(this.__ptr) } RenderThread.prototype.enqueueFrame = function(frame) { Polycode.RenderThread_enqueueFrame(this.__ptr, frame.__ptr) } RenderThread.prototype.enqueueJob = function(jobType,data,data2) { Polycode.RenderThread_enqueueJob(this.__ptr, jobType, data.__ptr, data2.__ptr) } RenderThread.prototype.processJob = function(job) { Polycode.RenderThread_processJob(this.__ptr, job) } RenderThread.prototype.clearFrameQueue = function() { Polycode.RenderThread_clearFrameQueue(this.__ptr) } RenderThread.prototype.getShaderBinding = function() { var retVal = new ShaderBinding() retVal.__ptr = Polycode.RenderThread_getShaderBinding(this.__ptr) return retVal } RenderThread.prototype.processDrawBufferLights = function(buffer) { Polycode.RenderThread_processDrawBufferLights(this.__ptr, buffer.__ptr) } RenderThread.prototype.processDrawBuffer = function(buffer) { Polycode.RenderThread_processDrawBuffer(this.__ptr, buffer.__ptr) } RenderThread.prototype.getFrameInfo = function() { var retVal = new RenderThreadDebugInfo() retVal.__ptr = Polycode.RenderThread_getFrameInfo(this.__ptr) return retVal } RenderThread.prototype.initGlobals = function() { Polycode.RenderThread_initGlobals(this.__ptr) } RenderThread.prototype.lockRenderMutex = function() { Polycode.RenderThread_lockRenderMutex(this.__ptr) } RenderThread.prototype.unlockRenderMutex = function() { Polycode.RenderThread_unlockRenderMutex(this.__ptr) }