GPUDrawOptions.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. 'alphaTest': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_alphaTest, set: GPUDrawOptions.prototype.__set_alphaTest},
  10. 'backfaceCull': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_backfaceCull, set: GPUDrawOptions.prototype.__set_backfaceCull},
  11. 'depthOnly': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_depthOnly, set: GPUDrawOptions.prototype.__set_depthOnly},
  12. 'forceMaterial': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_forceMaterial, set: GPUDrawOptions.prototype.__set_forceMaterial},
  13. 'blendingMode': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_blendingMode, set: GPUDrawOptions.prototype.__set_blendingMode},
  14. 'scissorBox': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_scissorBox, set: GPUDrawOptions.prototype.__set_scissorBox},
  15. 'enableScissor': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_enableScissor, set: GPUDrawOptions.prototype.__set_enableScissor},
  16. 'drawColor': { enumerable: true, configurable: true, get: GPUDrawOptions.prototype.__get_drawColor, set: GPUDrawOptions.prototype.__set_drawColor}
  17. })
  18. }
  19. GPUDrawOptions.prototype.__get_depthTest = function() {
  20. return Polycode.GPUDrawOptions__get_depthTest(this.__ptr)
  21. }
  22. GPUDrawOptions.prototype.__set_depthTest = function(val) {
  23. Polycode.GPUDrawOptions__set_depthTest(this.__ptr, val)
  24. }
  25. GPUDrawOptions.prototype.__get_depthWrite = function() {
  26. return Polycode.GPUDrawOptions__get_depthWrite(this.__ptr)
  27. }
  28. GPUDrawOptions.prototype.__set_depthWrite = function(val) {
  29. Polycode.GPUDrawOptions__set_depthWrite(this.__ptr, val)
  30. }
  31. GPUDrawOptions.prototype.__get_linePointSize = function() {
  32. return Polycode.GPUDrawOptions__get_linePointSize(this.__ptr)
  33. }
  34. GPUDrawOptions.prototype.__set_linePointSize = function(val) {
  35. Polycode.GPUDrawOptions__set_linePointSize(this.__ptr, val)
  36. }
  37. GPUDrawOptions.prototype.__get_alphaTest = function() {
  38. return Polycode.GPUDrawOptions__get_alphaTest(this.__ptr)
  39. }
  40. GPUDrawOptions.prototype.__set_alphaTest = function(val) {
  41. Polycode.GPUDrawOptions__set_alphaTest(this.__ptr, val)
  42. }
  43. GPUDrawOptions.prototype.__get_backfaceCull = function() {
  44. return Polycode.GPUDrawOptions__get_backfaceCull(this.__ptr)
  45. }
  46. GPUDrawOptions.prototype.__set_backfaceCull = function(val) {
  47. Polycode.GPUDrawOptions__set_backfaceCull(this.__ptr, val)
  48. }
  49. GPUDrawOptions.prototype.__get_depthOnly = function() {
  50. return Polycode.GPUDrawOptions__get_depthOnly(this.__ptr)
  51. }
  52. GPUDrawOptions.prototype.__set_depthOnly = function(val) {
  53. Polycode.GPUDrawOptions__set_depthOnly(this.__ptr, val)
  54. }
  55. GPUDrawOptions.prototype.__get_forceMaterial = function() {
  56. return Polycode.GPUDrawOptions__get_forceMaterial(this.__ptr)
  57. }
  58. GPUDrawOptions.prototype.__set_forceMaterial = function(val) {
  59. Polycode.GPUDrawOptions__set_forceMaterial(this.__ptr, val)
  60. }
  61. GPUDrawOptions.prototype.__get_blendingMode = function() {
  62. return Polycode.GPUDrawOptions__get_blendingMode(this.__ptr)
  63. }
  64. GPUDrawOptions.prototype.__set_blendingMode = function(val) {
  65. Polycode.GPUDrawOptions__set_blendingMode(this.__ptr, val)
  66. }
  67. GPUDrawOptions.prototype.__get_scissorBox = function() {
  68. var retVal = new Rectangle()
  69. retVal.__ptr = Polycode.GPUDrawOptions__get_scissorBox(this.__ptr)
  70. return retVal
  71. }
  72. GPUDrawOptions.prototype.__set_scissorBox = function(val) {
  73. Polycode.GPUDrawOptions__set_scissorBox(this.__ptr, val.__ptr)
  74. }
  75. GPUDrawOptions.prototype.__get_enableScissor = function() {
  76. return Polycode.GPUDrawOptions__get_enableScissor(this.__ptr)
  77. }
  78. GPUDrawOptions.prototype.__set_enableScissor = function(val) {
  79. Polycode.GPUDrawOptions__set_enableScissor(this.__ptr, val)
  80. }
  81. GPUDrawOptions.prototype.__get_drawColor = function() {
  82. var retVal = new Color()
  83. retVal.__ptr = Polycode.GPUDrawOptions__get_drawColor(this.__ptr)
  84. return retVal
  85. }
  86. GPUDrawOptions.prototype.__set_drawColor = function(val) {
  87. Polycode.GPUDrawOptions__set_drawColor(this.__ptr, val.__ptr)
  88. }
  89. Duktape.fin(GPUDrawOptions.prototype, function (x) {
  90. if (x === GPUDrawOptions.prototype) {
  91. return;
  92. }
  93. Polycode.GPUDrawOptions__delete(x.__ptr)
  94. })