ProgramAttribute.js 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. function ProgramAttribute() {
  2. Object.defineProperties(this, {
  3. 'size': { enumerable: true, configurable: true, get: ProgramAttribute.prototype.__get_size, set: ProgramAttribute.prototype.__set_size},
  4. 'name': { enumerable: true, configurable: true, get: ProgramAttribute.prototype.__get_name, set: ProgramAttribute.prototype.__set_name},
  5. 'platformData': { enumerable: true, configurable: true, get: ProgramAttribute.prototype.__get_platformData, set: ProgramAttribute.prototype.__set_platformData}
  6. })
  7. }
  8. ProgramAttribute.prototype.__get_size = function() {
  9. return Polycode.ProgramAttribute__get_size(this.__ptr)
  10. }
  11. ProgramAttribute.prototype.__set_size = function(val) {
  12. Polycode.ProgramAttribute__set_size(this.__ptr, val)
  13. }
  14. ProgramAttribute.prototype.__get_name = function() {
  15. return Polycode.ProgramAttribute__get_name(this.__ptr)
  16. }
  17. ProgramAttribute.prototype.__set_name = function(val) {
  18. Polycode.ProgramAttribute__set_name(this.__ptr, val)
  19. }
  20. ProgramAttribute.prototype.__get_platformData = function() {
  21. var retVal = new void()
  22. retVal.__ptr = Polycode.ProgramAttribute__get_platformData(this.__ptr)
  23. return retVal
  24. }
  25. ProgramAttribute.prototype.__set_platformData = function(val) {
  26. Polycode.ProgramAttribute__set_platformData(this.__ptr, val.__ptr)
  27. }