2
0

LightInfoBinding.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. function LightInfoBinding() {
  2. Object.defineProperties(this, {
  3. 'position': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_position, set: LightInfoBinding.prototype.__set_position},
  4. 'direction': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_direction, set: LightInfoBinding.prototype.__set_direction},
  5. 'specular': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_specular, set: LightInfoBinding.prototype.__set_specular},
  6. 'diffuse': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_diffuse, set: LightInfoBinding.prototype.__set_diffuse},
  7. 'spotExponent': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_spotExponent, set: LightInfoBinding.prototype.__set_spotExponent},
  8. 'spotCosCutoff': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_spotCosCutoff, set: LightInfoBinding.prototype.__set_spotCosCutoff},
  9. 'constantAttenuation': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_constantAttenuation, set: LightInfoBinding.prototype.__set_constantAttenuation},
  10. 'linearAttenuation': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_linearAttenuation, set: LightInfoBinding.prototype.__set_linearAttenuation},
  11. 'quadraticAttenuation': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_quadraticAttenuation, set: LightInfoBinding.prototype.__set_quadraticAttenuation},
  12. 'shadowEnabled': { enumerable: true, configurable: true, get: LightInfoBinding.prototype.__get_shadowEnabled, set: LightInfoBinding.prototype.__set_shadowEnabled}
  13. })
  14. }
  15. LightInfoBinding.prototype.__get_position = function() {
  16. var retVal = new LocalShaderParam()
  17. retVal.__ptr = Polycode.LightInfoBinding__get_position(this.__ptr)
  18. return retVal
  19. }
  20. LightInfoBinding.prototype.__set_position = function(val) {
  21. Polycode.LightInfoBinding__set_position(this.__ptr, val.__ptr)
  22. }
  23. LightInfoBinding.prototype.__get_direction = function() {
  24. var retVal = new LocalShaderParam()
  25. retVal.__ptr = Polycode.LightInfoBinding__get_direction(this.__ptr)
  26. return retVal
  27. }
  28. LightInfoBinding.prototype.__set_direction = function(val) {
  29. Polycode.LightInfoBinding__set_direction(this.__ptr, val.__ptr)
  30. }
  31. LightInfoBinding.prototype.__get_specular = function() {
  32. var retVal = new LocalShaderParam()
  33. retVal.__ptr = Polycode.LightInfoBinding__get_specular(this.__ptr)
  34. return retVal
  35. }
  36. LightInfoBinding.prototype.__set_specular = function(val) {
  37. Polycode.LightInfoBinding__set_specular(this.__ptr, val.__ptr)
  38. }
  39. LightInfoBinding.prototype.__get_diffuse = function() {
  40. var retVal = new LocalShaderParam()
  41. retVal.__ptr = Polycode.LightInfoBinding__get_diffuse(this.__ptr)
  42. return retVal
  43. }
  44. LightInfoBinding.prototype.__set_diffuse = function(val) {
  45. Polycode.LightInfoBinding__set_diffuse(this.__ptr, val.__ptr)
  46. }
  47. LightInfoBinding.prototype.__get_spotExponent = function() {
  48. var retVal = new LocalShaderParam()
  49. retVal.__ptr = Polycode.LightInfoBinding__get_spotExponent(this.__ptr)
  50. return retVal
  51. }
  52. LightInfoBinding.prototype.__set_spotExponent = function(val) {
  53. Polycode.LightInfoBinding__set_spotExponent(this.__ptr, val.__ptr)
  54. }
  55. LightInfoBinding.prototype.__get_spotCosCutoff = function() {
  56. var retVal = new LocalShaderParam()
  57. retVal.__ptr = Polycode.LightInfoBinding__get_spotCosCutoff(this.__ptr)
  58. return retVal
  59. }
  60. LightInfoBinding.prototype.__set_spotCosCutoff = function(val) {
  61. Polycode.LightInfoBinding__set_spotCosCutoff(this.__ptr, val.__ptr)
  62. }
  63. LightInfoBinding.prototype.__get_constantAttenuation = function() {
  64. var retVal = new LocalShaderParam()
  65. retVal.__ptr = Polycode.LightInfoBinding__get_constantAttenuation(this.__ptr)
  66. return retVal
  67. }
  68. LightInfoBinding.prototype.__set_constantAttenuation = function(val) {
  69. Polycode.LightInfoBinding__set_constantAttenuation(this.__ptr, val.__ptr)
  70. }
  71. LightInfoBinding.prototype.__get_linearAttenuation = function() {
  72. var retVal = new LocalShaderParam()
  73. retVal.__ptr = Polycode.LightInfoBinding__get_linearAttenuation(this.__ptr)
  74. return retVal
  75. }
  76. LightInfoBinding.prototype.__set_linearAttenuation = function(val) {
  77. Polycode.LightInfoBinding__set_linearAttenuation(this.__ptr, val.__ptr)
  78. }
  79. LightInfoBinding.prototype.__get_quadraticAttenuation = function() {
  80. var retVal = new LocalShaderParam()
  81. retVal.__ptr = Polycode.LightInfoBinding__get_quadraticAttenuation(this.__ptr)
  82. return retVal
  83. }
  84. LightInfoBinding.prototype.__set_quadraticAttenuation = function(val) {
  85. Polycode.LightInfoBinding__set_quadraticAttenuation(this.__ptr, val.__ptr)
  86. }
  87. LightInfoBinding.prototype.__get_shadowEnabled = function() {
  88. var retVal = new LocalShaderParam()
  89. retVal.__ptr = Polycode.LightInfoBinding__get_shadowEnabled(this.__ptr)
  90. return retVal
  91. }
  92. LightInfoBinding.prototype.__set_shadowEnabled = function(val) {
  93. Polycode.LightInfoBinding__set_shadowEnabled(this.__ptr, val.__ptr)
  94. }
  95. Duktape.fin(LightInfoBinding.prototype, function (x) {
  96. if (x === LightInfoBinding.prototype) {
  97. return;
  98. }
  99. Polycode.LightInfoBinding__delete(x.__ptr)
  100. })