AttributeBinding.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. function AttributeBinding() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.AttributeBinding()
  4. }
  5. Object.defineProperties(this, {
  6. 'name': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_name, set: AttributeBinding.prototype.__set_name},
  7. 'vertexData': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_vertexData, set: AttributeBinding.prototype.__set_vertexData},
  8. 'attribute': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_attribute, set: AttributeBinding.prototype.__set_attribute},
  9. 'enabled': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_enabled, set: AttributeBinding.prototype.__set_enabled}
  10. })
  11. }
  12. AttributeBinding.prototype.__get_name = function() {
  13. return Polycode.AttributeBinding__get_name(this.__ptr)
  14. }
  15. AttributeBinding.prototype.__set_name = function(val) {
  16. Polycode.AttributeBinding__set_name(this.__ptr, val)
  17. }
  18. AttributeBinding.prototype.__get_vertexData = function() {
  19. var retVal = new VertexDataArray()
  20. retVal.__ptr = Polycode.AttributeBinding__get_vertexData(this.__ptr)
  21. return retVal
  22. }
  23. AttributeBinding.prototype.__set_vertexData = function(val) {
  24. Polycode.AttributeBinding__set_vertexData(this.__ptr, val.__ptr)
  25. }
  26. AttributeBinding.prototype.__get_attribute = function() {
  27. var retVal = new ProgramAttribute()
  28. retVal.__ptr = Polycode.AttributeBinding__get_attribute(this.__ptr)
  29. return retVal
  30. }
  31. AttributeBinding.prototype.__set_attribute = function(val) {
  32. Polycode.AttributeBinding__set_attribute(this.__ptr, val.__ptr)
  33. }
  34. AttributeBinding.prototype.__get_enabled = function() {
  35. return Polycode.AttributeBinding__get_enabled(this.__ptr)
  36. }
  37. AttributeBinding.prototype.__set_enabled = function(val) {
  38. Polycode.AttributeBinding__set_enabled(this.__ptr, val)
  39. }
  40. Duktape.fin(AttributeBinding.prototype, function (x) {
  41. if (x === AttributeBinding.prototype) {
  42. return;
  43. }
  44. Polycode.AttributeBinding__delete(x.__ptr)
  45. })