GPUDrawCall.js 1.1 KB

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