GPUDrawCall.js 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. function GPUDrawCall() {
  2. Object.defineProperties(this, {
  3. 'options': { enumerable: true, configurable: true, get: GPUDrawCall.prototype.__get_options, set: GPUDrawCall.prototype.__set_options},
  4. 'modelMatrix': { enumerable: true, configurable: true, get: GPUDrawCall.prototype.__get_modelMatrix, set: GPUDrawCall.prototype.__set_modelMatrix}
  5. })
  6. }
  7. GPUDrawCall.prototype.__get_options = function() {
  8. var retVal = new GPUDrawOptions()
  9. retVal.__ptr = Polycode.GPUDrawCall__get_options(this.__ptr)
  10. return retVal
  11. }
  12. GPUDrawCall.prototype.__set_options = function(val) {
  13. Polycode.GPUDrawCall__set_options(this.__ptr, val.__ptr)
  14. }
  15. GPUDrawCall.prototype.__get_modelMatrix = function() {
  16. var retVal = new Matrix4()
  17. retVal.__ptr = Polycode.GPUDrawCall__get_modelMatrix(this.__ptr)
  18. return retVal
  19. }
  20. GPUDrawCall.prototype.__set_modelMatrix = function(val) {
  21. Polycode.GPUDrawCall__set_modelMatrix(this.__ptr, val.__ptr)
  22. }
  23. Duktape.fin(GPUDrawCall.prototype, function (x) {
  24. if (x === GPUDrawCall.prototype) {
  25. return;
  26. }
  27. Polycode.GPUDrawCall__delete(x.__ptr)
  28. })