LightInfo.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. function LightInfo() {
  2. Object.defineProperties(this, {
  3. 'importance': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_importance, set: LightInfo.prototype.__set_importance},
  4. 'position': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_position, set: LightInfo.prototype.__set_position},
  5. 'direction': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_direction, set: LightInfo.prototype.__set_direction},
  6. 'type': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_type, set: LightInfo.prototype.__set_type},
  7. 'diffuseColor': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_diffuseColor, set: LightInfo.prototype.__set_diffuseColor},
  8. 'specularColor': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_specularColor, set: LightInfo.prototype.__set_specularColor},
  9. 'constantAttenuation': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_constantAttenuation, set: LightInfo.prototype.__set_constantAttenuation},
  10. 'linearAttenuation': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_linearAttenuation, set: LightInfo.prototype.__set_linearAttenuation},
  11. 'quadraticAttenuation': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_quadraticAttenuation, set: LightInfo.prototype.__set_quadraticAttenuation},
  12. 'intensity': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_intensity, set: LightInfo.prototype.__set_intensity},
  13. 'spotlightCutoff': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_spotlightCutoff, set: LightInfo.prototype.__set_spotlightCutoff},
  14. 'spotlightExponent': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_spotlightExponent, set: LightInfo.prototype.__set_spotlightExponent},
  15. 'shadowsEnabled': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_shadowsEnabled, set: LightInfo.prototype.__set_shadowsEnabled},
  16. 'shadowMapTexture': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_shadowMapTexture, set: LightInfo.prototype.__set_shadowMapTexture},
  17. 'lightViewMatrix': { enumerable: true, configurable: true, get: LightInfo.prototype.__get_lightViewMatrix, set: LightInfo.prototype.__set_lightViewMatrix}
  18. })
  19. }
  20. LightInfo.prototype.__get_importance = function() {
  21. return Polycode.LightInfo__get_importance(this.__ptr)
  22. }
  23. LightInfo.prototype.__set_importance = function(val) {
  24. Polycode.LightInfo__set_importance(this.__ptr, val)
  25. }
  26. LightInfo.prototype.__get_position = function() {
  27. var retVal = new Vector3()
  28. retVal.__ptr = Polycode.LightInfo__get_position(this.__ptr)
  29. return retVal
  30. }
  31. LightInfo.prototype.__set_position = function(val) {
  32. Polycode.LightInfo__set_position(this.__ptr, val.__ptr)
  33. }
  34. LightInfo.prototype.__get_direction = function() {
  35. var retVal = new Vector3()
  36. retVal.__ptr = Polycode.LightInfo__get_direction(this.__ptr)
  37. return retVal
  38. }
  39. LightInfo.prototype.__set_direction = function(val) {
  40. Polycode.LightInfo__set_direction(this.__ptr, val.__ptr)
  41. }
  42. LightInfo.prototype.__get_type = function() {
  43. return Polycode.LightInfo__get_type(this.__ptr)
  44. }
  45. LightInfo.prototype.__set_type = function(val) {
  46. Polycode.LightInfo__set_type(this.__ptr, val)
  47. }
  48. LightInfo.prototype.__get_diffuseColor = function() {
  49. var retVal = new Color()
  50. retVal.__ptr = Polycode.LightInfo__get_diffuseColor(this.__ptr)
  51. return retVal
  52. }
  53. LightInfo.prototype.__set_diffuseColor = function(val) {
  54. Polycode.LightInfo__set_diffuseColor(this.__ptr, val.__ptr)
  55. }
  56. LightInfo.prototype.__get_specularColor = function() {
  57. var retVal = new Color()
  58. retVal.__ptr = Polycode.LightInfo__get_specularColor(this.__ptr)
  59. return retVal
  60. }
  61. LightInfo.prototype.__set_specularColor = function(val) {
  62. Polycode.LightInfo__set_specularColor(this.__ptr, val.__ptr)
  63. }
  64. LightInfo.prototype.__get_constantAttenuation = function() {
  65. return Polycode.LightInfo__get_constantAttenuation(this.__ptr)
  66. }
  67. LightInfo.prototype.__set_constantAttenuation = function(val) {
  68. Polycode.LightInfo__set_constantAttenuation(this.__ptr, val)
  69. }
  70. LightInfo.prototype.__get_linearAttenuation = function() {
  71. return Polycode.LightInfo__get_linearAttenuation(this.__ptr)
  72. }
  73. LightInfo.prototype.__set_linearAttenuation = function(val) {
  74. Polycode.LightInfo__set_linearAttenuation(this.__ptr, val)
  75. }
  76. LightInfo.prototype.__get_quadraticAttenuation = function() {
  77. return Polycode.LightInfo__get_quadraticAttenuation(this.__ptr)
  78. }
  79. LightInfo.prototype.__set_quadraticAttenuation = function(val) {
  80. Polycode.LightInfo__set_quadraticAttenuation(this.__ptr, val)
  81. }
  82. LightInfo.prototype.__get_intensity = function() {
  83. return Polycode.LightInfo__get_intensity(this.__ptr)
  84. }
  85. LightInfo.prototype.__set_intensity = function(val) {
  86. Polycode.LightInfo__set_intensity(this.__ptr, val)
  87. }
  88. LightInfo.prototype.__get_spotlightCutoff = function() {
  89. return Polycode.LightInfo__get_spotlightCutoff(this.__ptr)
  90. }
  91. LightInfo.prototype.__set_spotlightCutoff = function(val) {
  92. Polycode.LightInfo__set_spotlightCutoff(this.__ptr, val)
  93. }
  94. LightInfo.prototype.__get_spotlightExponent = function() {
  95. return Polycode.LightInfo__get_spotlightExponent(this.__ptr)
  96. }
  97. LightInfo.prototype.__set_spotlightExponent = function(val) {
  98. Polycode.LightInfo__set_spotlightExponent(this.__ptr, val)
  99. }
  100. LightInfo.prototype.__get_shadowsEnabled = function() {
  101. return Polycode.LightInfo__get_shadowsEnabled(this.__ptr)
  102. }
  103. LightInfo.prototype.__set_shadowsEnabled = function(val) {
  104. Polycode.LightInfo__set_shadowsEnabled(this.__ptr, val)
  105. }
  106. LightInfo.prototype.__get_shadowMapTexture = function() {
  107. var retVal = new Texture()
  108. retVal.__ptr = Polycode.LightInfo__get_shadowMapTexture(this.__ptr)
  109. return retVal
  110. }
  111. LightInfo.prototype.__set_shadowMapTexture = function(val) {
  112. Polycode.LightInfo__set_shadowMapTexture(this.__ptr, val.__ptr)
  113. }
  114. LightInfo.prototype.__get_lightViewMatrix = function() {
  115. var retVal = new Matrix4()
  116. retVal.__ptr = Polycode.LightInfo__get_lightViewMatrix(this.__ptr)
  117. return retVal
  118. }
  119. LightInfo.prototype.__set_lightViewMatrix = function(val) {
  120. Polycode.LightInfo__set_lightViewMatrix(this.__ptr, val.__ptr)
  121. }