ProgramParam.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. function ProgramParam() {
  2. Object.defineProperties(this, {
  3. 'name': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_name, set: ProgramParam.prototype.__set_name},
  4. 'type': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_type, set: ProgramParam.prototype.__set_type},
  5. 'platformData': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_platformData, set: ProgramParam.prototype.__set_platformData},
  6. 'globalParam': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_globalParam, set: ProgramParam.prototype.__set_globalParam}
  7. })
  8. }
  9. ProgramParam.prototype.__get_name = function() {
  10. return Polycode.ProgramParam__get_name(this.__ptr)
  11. }
  12. ProgramParam.prototype.__set_name = function(val) {
  13. Polycode.ProgramParam__set_name(this.__ptr, val)
  14. }
  15. ProgramParam.prototype.__get_type = function() {
  16. return Polycode.ProgramParam__get_type(this.__ptr)
  17. }
  18. ProgramParam.prototype.__set_type = function(val) {
  19. Polycode.ProgramParam__set_type(this.__ptr, val)
  20. }
  21. ProgramParam.prototype.__get_platformData = function() {
  22. var retVal = new void()
  23. retVal.__ptr = Polycode.ProgramParam__get_platformData(this.__ptr)
  24. return retVal
  25. }
  26. ProgramParam.prototype.__set_platformData = function(val) {
  27. Polycode.ProgramParam__set_platformData(this.__ptr, val.__ptr)
  28. }
  29. ProgramParam.prototype.__get_globalParam = function() {
  30. var retVal = new LocalShaderParam()
  31. retVal.__ptr = Polycode.ProgramParam__get_globalParam(this.__ptr)
  32. return retVal
  33. }
  34. ProgramParam.prototype.__set_globalParam = function(val) {
  35. Polycode.ProgramParam__set_globalParam(this.__ptr, val.__ptr)
  36. }