GPUDrawBuffer.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. function GPUDrawBuffer() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.GPUDrawBuffer()
  4. }
  5. Object.defineProperties(this, {
  6. 'projectionMatrix': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_projectionMatrix, set: GPUDrawBuffer.prototype.__set_projectionMatrix},
  7. 'viewMatrix': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_viewMatrix, set: GPUDrawBuffer.prototype.__set_viewMatrix},
  8. 'cameraMatrix': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_cameraMatrix, set: GPUDrawBuffer.prototype.__set_cameraMatrix},
  9. 'clearColor': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_clearColor, set: GPUDrawBuffer.prototype.__set_clearColor},
  10. 'clearDepthBuffer': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_clearDepthBuffer, set: GPUDrawBuffer.prototype.__set_clearDepthBuffer},
  11. 'clearColorBuffer': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_clearColorBuffer, set: GPUDrawBuffer.prototype.__set_clearColorBuffer},
  12. 'backingResolutionScale': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_backingResolutionScale, set: GPUDrawBuffer.prototype.__set_backingResolutionScale},
  13. 'viewport': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_viewport, set: GPUDrawBuffer.prototype.__set_viewport},
  14. 'shadowMapPass': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_shadowMapPass, set: GPUDrawBuffer.prototype.__set_shadowMapPass}
  15. })
  16. }
  17. GPUDrawBuffer.prototype.__get_projectionMatrix = function() {
  18. var retVal = new Matrix4("__skip_ptr__")
  19. retVal.__ptr = Polycode.GPUDrawBuffer__get_projectionMatrix(this.__ptr)
  20. return retVal
  21. }
  22. GPUDrawBuffer.prototype.__set_projectionMatrix = function(val) {
  23. Polycode.GPUDrawBuffer__set_projectionMatrix(this.__ptr, val.__ptr)
  24. }
  25. GPUDrawBuffer.prototype.__get_viewMatrix = function() {
  26. var retVal = new Matrix4("__skip_ptr__")
  27. retVal.__ptr = Polycode.GPUDrawBuffer__get_viewMatrix(this.__ptr)
  28. return retVal
  29. }
  30. GPUDrawBuffer.prototype.__set_viewMatrix = function(val) {
  31. Polycode.GPUDrawBuffer__set_viewMatrix(this.__ptr, val.__ptr)
  32. }
  33. GPUDrawBuffer.prototype.__get_cameraMatrix = function() {
  34. var retVal = new Matrix4("__skip_ptr__")
  35. retVal.__ptr = Polycode.GPUDrawBuffer__get_cameraMatrix(this.__ptr)
  36. return retVal
  37. }
  38. GPUDrawBuffer.prototype.__set_cameraMatrix = function(val) {
  39. Polycode.GPUDrawBuffer__set_cameraMatrix(this.__ptr, val.__ptr)
  40. }
  41. GPUDrawBuffer.prototype.__get_clearColor = function() {
  42. var retVal = new Color("__skip_ptr__")
  43. retVal.__ptr = Polycode.GPUDrawBuffer__get_clearColor(this.__ptr)
  44. return retVal
  45. }
  46. GPUDrawBuffer.prototype.__set_clearColor = function(val) {
  47. Polycode.GPUDrawBuffer__set_clearColor(this.__ptr, val.__ptr)
  48. }
  49. GPUDrawBuffer.prototype.__get_clearDepthBuffer = function() {
  50. return Polycode.GPUDrawBuffer__get_clearDepthBuffer(this.__ptr)
  51. }
  52. GPUDrawBuffer.prototype.__set_clearDepthBuffer = function(val) {
  53. Polycode.GPUDrawBuffer__set_clearDepthBuffer(this.__ptr, val)
  54. }
  55. GPUDrawBuffer.prototype.__get_clearColorBuffer = function() {
  56. return Polycode.GPUDrawBuffer__get_clearColorBuffer(this.__ptr)
  57. }
  58. GPUDrawBuffer.prototype.__set_clearColorBuffer = function(val) {
  59. Polycode.GPUDrawBuffer__set_clearColorBuffer(this.__ptr, val)
  60. }
  61. GPUDrawBuffer.prototype.__get_backingResolutionScale = function() {
  62. var retVal = new Vector2("__skip_ptr__")
  63. retVal.__ptr = Polycode.GPUDrawBuffer__get_backingResolutionScale(this.__ptr)
  64. return retVal
  65. }
  66. GPUDrawBuffer.prototype.__set_backingResolutionScale = function(val) {
  67. Polycode.GPUDrawBuffer__set_backingResolutionScale(this.__ptr, val.__ptr)
  68. }
  69. GPUDrawBuffer.prototype.__get_viewport = function() {
  70. var retVal = new Rectangle("__skip_ptr__")
  71. retVal.__ptr = Polycode.GPUDrawBuffer__get_viewport(this.__ptr)
  72. return retVal
  73. }
  74. GPUDrawBuffer.prototype.__set_viewport = function(val) {
  75. Polycode.GPUDrawBuffer__set_viewport(this.__ptr, val.__ptr)
  76. }
  77. GPUDrawBuffer.prototype.__get_shadowMapPass = function() {
  78. return Polycode.GPUDrawBuffer__get_shadowMapPass(this.__ptr)
  79. }
  80. GPUDrawBuffer.prototype.__set_shadowMapPass = function(val) {
  81. Polycode.GPUDrawBuffer__set_shadowMapPass(this.__ptr, val)
  82. }
  83. Duktape.fin(GPUDrawBuffer.prototype, function (x) {
  84. if (x === GPUDrawBuffer.prototype) {
  85. return;
  86. }
  87. Polycode.GPUDrawBuffer__delete(x.__ptr)
  88. })