LightShadowInfoBinding.js 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. function LightShadowInfoBinding() {
  2. Object.defineProperties(this, {
  3. 'shadowMatrix': { enumerable: true, configurable: true, get: LightShadowInfoBinding.prototype.__get_shadowMatrix, set: LightShadowInfoBinding.prototype.__set_shadowMatrix},
  4. 'shadowBuffer': { enumerable: true, configurable: true, get: LightShadowInfoBinding.prototype.__get_shadowBuffer, set: LightShadowInfoBinding.prototype.__set_shadowBuffer}
  5. })
  6. }
  7. LightShadowInfoBinding.prototype.__get_shadowMatrix = function() {
  8. var retVal = new LocalShaderParam()
  9. retVal.__ptr = Polycode.LightShadowInfoBinding__get_shadowMatrix(this.__ptr)
  10. return retVal
  11. }
  12. LightShadowInfoBinding.prototype.__set_shadowMatrix = function(val) {
  13. Polycode.LightShadowInfoBinding__set_shadowMatrix(this.__ptr, val.__ptr)
  14. }
  15. LightShadowInfoBinding.prototype.__get_shadowBuffer = function() {
  16. var retVal = new LocalShaderParam()
  17. retVal.__ptr = Polycode.LightShadowInfoBinding__get_shadowBuffer(this.__ptr)
  18. return retVal
  19. }
  20. LightShadowInfoBinding.prototype.__set_shadowBuffer = function(val) {
  21. Polycode.LightShadowInfoBinding__set_shadowBuffer(this.__ptr, val.__ptr)
  22. }
  23. Duktape.fin(LightShadowInfoBinding.prototype, function (x) {
  24. if (x === LightShadowInfoBinding.prototype) {
  25. return;
  26. }
  27. Polycode.LightShadowInfoBinding__delete(x.__ptr)
  28. })