RenderThread.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. function RenderThread() {
  2. }
  3. RenderThread.prototype.setGraphicsInterface = function(core,graphicsInterface) {
  4. Polycode.RenderThread_setGraphicsInterface(this.__ptr, core,graphicsInterface)
  5. }
  6. RenderThread.prototype.runThread = function() {
  7. Polycode.RenderThread_runThread(this.__ptr)
  8. }
  9. RenderThread.prototype.enqueueFrame = function(frame) {
  10. Polycode.RenderThread_enqueueFrame(this.__ptr, frame)
  11. }
  12. RenderThread.prototype.enqueueJob = function(jobType,data,data2) {
  13. Polycode.RenderThread_enqueueJob(this.__ptr, jobType,data,data2)
  14. }
  15. RenderThread.prototype.processJob = function(job) {
  16. Polycode.RenderThread_processJob(this.__ptr, job)
  17. }
  18. RenderThread.prototype.getShaderBinding = function() {
  19. Polycode.RenderThread_getShaderBinding(this.__ptr)
  20. }
  21. RenderThread.prototype.processDrawBuffer = function(buffer) {
  22. Polycode.RenderThread_processDrawBuffer(this.__ptr, buffer)
  23. }
  24. RenderThread.prototype.getFrameInfo = function() {
  25. Polycode.RenderThread_getFrameInfo(this.__ptr)
  26. }
  27. RenderThread.prototype.clearFrameQueue = function() {
  28. Polycode.RenderThread_clearFrameQueue(this.__ptr)
  29. }
  30. RenderThread.prototype.initGlobals = function() {
  31. Polycode.RenderThread_initGlobals(this.__ptr)
  32. }
  33. RenderThread.prototype.lockRenderMutex = function() {
  34. Polycode.RenderThread_lockRenderMutex(this.__ptr)
  35. }
  36. RenderThread.prototype.unlockRenderMutex = function() {
  37. Polycode.RenderThread_unlockRenderMutex(this.__ptr)
  38. }