Renderer.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. function Renderer() {
  2. }
  3. Renderer.prototype.setGraphicsInterface = function(core,graphicsInterface) {
  4. Polycode.Renderer_setGraphicsInterface(this.__ptr, core,graphicsInterface)
  5. }
  6. Renderer.prototype.getRenderThread = function() {
  7. Polycode.Renderer_getRenderThread(this.__ptr)
  8. }
  9. Renderer.prototype.createCubemap = function(t0,t1,t2,t3,t4,t5) {
  10. Polycode.Renderer_createCubemap(this.__ptr, t0,t1,t2,t3,t4,t5)
  11. }
  12. Renderer.prototype.createTexture = function(width,height,textureData,clamp,createMipmaps,type,filteringMode,anisotropy,framebufferTexture) {
  13. Polycode.Renderer_createTexture(this.__ptr, width,height,textureData,clamp,createMipmaps,type,filteringMode,anisotropy,framebufferTexture)
  14. }
  15. Renderer.prototype.createRenderBuffer = function(width,height,attachDepthBuffer,floatingPoint) {
  16. Polycode.Renderer_createRenderBuffer(this.__ptr, width,height,attachDepthBuffer,floatingPoint)
  17. }
  18. Renderer.prototype.destroyRenderBuffer = function(buffer) {
  19. Polycode.Renderer_destroyRenderBuffer(this.__ptr, buffer)
  20. }
  21. Renderer.prototype.destroyTexture = function(texture) {
  22. Polycode.Renderer_destroyTexture(this.__ptr, texture)
  23. }
  24. Renderer.prototype.processDrawBuffer = function(buffer) {
  25. Polycode.Renderer_processDrawBuffer(this.__ptr, buffer)
  26. }
  27. Renderer.prototype.setBackingResolutionScale = function(xScale,yScale) {
  28. Polycode.Renderer_setBackingResolutionScale(this.__ptr, xScale,yScale)
  29. }
  30. Renderer.prototype.getBackingResolutionScaleX = function() {
  31. Polycode.Renderer_getBackingResolutionScaleX(this.__ptr)
  32. }
  33. Renderer.prototype.getBackingResolutionScaleY = function() {
  34. Polycode.Renderer_getBackingResolutionScaleY(this.__ptr)
  35. }
  36. Renderer.prototype.createProgram = function(fileName) {
  37. Polycode.Renderer_createProgram(this.__ptr, fileName)
  38. }
  39. Renderer.prototype.createShader = function(vertexProgram,fragmentProgram) {
  40. Polycode.Renderer_createShader(this.__ptr, vertexProgram,fragmentProgram)
  41. }
  42. Renderer.prototype.createVertexBuffers = function(mesh) {
  43. Polycode.Renderer_createVertexBuffers(this.__ptr, mesh)
  44. }
  45. Renderer.prototype.enqueueFrameJob = function(jobType,data) {
  46. Polycode.Renderer_enqueueFrameJob(this.__ptr, jobType,data)
  47. }
  48. Renderer.prototype.destroyProgram = function(program) {
  49. Polycode.Renderer_destroyProgram(this.__ptr, program)
  50. }
  51. Renderer.prototype.destroyShader = function(shader) {
  52. Polycode.Renderer_destroyShader(this.__ptr, shader)
  53. }
  54. Renderer.prototype.destroyBuffer = function(array) {
  55. Polycode.Renderer_destroyBuffer(this.__ptr, array)
  56. }
  57. Renderer.prototype.destroyShaderBinding = function(binding) {
  58. Polycode.Renderer_destroyShaderBinding(this.__ptr, binding)
  59. }
  60. Renderer.prototype.destroyShaderParam = function(param) {
  61. Polycode.Renderer_destroyShaderParam(this.__ptr, param)
  62. }
  63. Renderer.prototype.setTextureParam = function(param,texture) {
  64. Polycode.Renderer_setTextureParam(this.__ptr, param,texture)
  65. }
  66. Renderer.prototype.setAnisotropyAmount = function(amount) {
  67. Polycode.Renderer_setAnisotropyAmount(this.__ptr, amount)
  68. }
  69. Renderer.prototype.getAnisotropyAmount = function() {
  70. Polycode.Renderer_getAnisotropyAmount(this.__ptr)
  71. }
  72. Renderer.prototype.createMesh = function(fileName) {
  73. Polycode.Renderer_createMesh(this.__ptr, fileName)
  74. }
  75. Renderer.prototype.destroyMesh = function(mesh) {
  76. Polycode.Renderer_destroyMesh(this.__ptr, mesh)
  77. }
  78. Renderer.prototype.beginFrame = function() {
  79. Polycode.Renderer_beginFrame(this.__ptr)
  80. }
  81. Renderer.prototype.endFrame = function() {
  82. Polycode.Renderer_endFrame(this.__ptr)
  83. }