GPUDrawOptions.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. function GPUDrawOptions() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.GPUDrawOptions()
  4. }
  5. Object.defineProperties(this, {
  6. 'depthTest': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_depthTest, set: GPUDrawOptions.prototype.__set_depthTest},
  7. 'depthWrite': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_depthWrite, set: GPUDrawOptions.prototype.__set_depthWrite},
  8. 'linePointSize': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_linePointSize, set: GPUDrawOptions.prototype.__set_linePointSize},
  9. 'backfaceCull': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_backfaceCull, set: GPUDrawOptions.prototype.__set_backfaceCull},
  10. 'depthOnly': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_depthOnly, set: GPUDrawOptions.prototype.__set_depthOnly},
  11. 'forceMaterial': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_forceMaterial, set: GPUDrawOptions.prototype.__set_forceMaterial},
  12. 'blendingMode': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_blendingMode, set: GPUDrawOptions.prototype.__set_blendingMode},
  13. 'scissorBox': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_scissorBox, set: GPUDrawOptions.prototype.__set_scissorBox},
  14. 'enableScissor': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_enableScissor, set: GPUDrawOptions.prototype.__set_enableScissor},
  15. 'drawColor': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_drawColor, set: GPUDrawOptions.prototype.__set_drawColor}
  16. })
  17. }
  18. GPUDrawOptions.prototype.__get_depthTest = function() {
  19. return Polycode.GPUDrawOptions__get_depthTest(this.__ptr)
  20. }
  21. GPUDrawOptions.prototype.__set_depthTest = function(val) {
  22. Polycode.GPUDrawOptions__set_depthTest(this.__ptr, val)
  23. }
  24. GPUDrawOptions.prototype.__get_depthWrite = function() {
  25. return Polycode.GPUDrawOptions__get_depthWrite(this.__ptr)
  26. }
  27. GPUDrawOptions.prototype.__set_depthWrite = function(val) {
  28. Polycode.GPUDrawOptions__set_depthWrite(this.__ptr, val)
  29. }
  30. GPUDrawOptions.prototype.__get_linePointSize = function() {
  31. return Polycode.GPUDrawOptions__get_linePointSize(this.__ptr)
  32. }
  33. GPUDrawOptions.prototype.__set_linePointSize = function(val) {
  34. Polycode.GPUDrawOptions__set_linePointSize(this.__ptr, val)
  35. }
  36. GPUDrawOptions.prototype.__get_backfaceCull = function() {
  37. return Polycode.GPUDrawOptions__get_backfaceCull(this.__ptr)
  38. }
  39. GPUDrawOptions.prototype.__set_backfaceCull = function(val) {
  40. Polycode.GPUDrawOptions__set_backfaceCull(this.__ptr, val)
  41. }
  42. GPUDrawOptions.prototype.__get_depthOnly = function() {
  43. return Polycode.GPUDrawOptions__get_depthOnly(this.__ptr)
  44. }
  45. GPUDrawOptions.prototype.__set_depthOnly = function(val) {
  46. Polycode.GPUDrawOptions__set_depthOnly(this.__ptr, val)
  47. }
  48. GPUDrawOptions.prototype.__get_forceMaterial = function() {
  49. return Polycode.GPUDrawOptions__get_forceMaterial(this.__ptr)
  50. }
  51. GPUDrawOptions.prototype.__set_forceMaterial = function(val) {
  52. Polycode.GPUDrawOptions__set_forceMaterial(this.__ptr, val)
  53. }
  54. GPUDrawOptions.prototype.__get_blendingMode = function() {
  55. return Polycode.GPUDrawOptions__get_blendingMode(this.__ptr)
  56. }
  57. GPUDrawOptions.prototype.__set_blendingMode = function(val) {
  58. Polycode.GPUDrawOptions__set_blendingMode(this.__ptr, val)
  59. }
  60. GPUDrawOptions.prototype.__get_scissorBox = function() {
  61. var retVal = new Rectangle("__skip_ptr__")
  62. retVal.__ptr = Polycode.GPUDrawOptions__get_scissorBox(this.__ptr)
  63. return retVal
  64. }
  65. GPUDrawOptions.prototype.__set_scissorBox = function(val) {
  66. Polycode.GPUDrawOptions__set_scissorBox(this.__ptr, val.__ptr)
  67. }
  68. GPUDrawOptions.prototype.__get_enableScissor = function() {
  69. return Polycode.GPUDrawOptions__get_enableScissor(this.__ptr)
  70. }
  71. GPUDrawOptions.prototype.__set_enableScissor = function(val) {
  72. Polycode.GPUDrawOptions__set_enableScissor(this.__ptr, val)
  73. }
  74. GPUDrawOptions.prototype.__get_drawColor = function() {
  75. var retVal = new Color("__skip_ptr__")
  76. retVal.__ptr = Polycode.GPUDrawOptions__get_drawColor(this.__ptr)
  77. return retVal
  78. }
  79. GPUDrawOptions.prototype.__set_drawColor = function(val) {
  80. Polycode.GPUDrawOptions__set_drawColor(this.__ptr, val.__ptr)
  81. }
  82. Duktape.fin(GPUDrawOptions.prototype, function (x) {
  83. if (x === GPUDrawOptions.prototype) {
  84. return;
  85. }
  86. Polycode.GPUDrawOptions__delete(x.__ptr)
  87. })