GPUDrawCall.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. function GPUDrawCall() {
  2. Object.defineProperties(this, {
  3. 'mesh': { enumerable: true, configurable: true, get: GPUDrawCall.prototype.__get_mesh, set: GPUDrawCall.prototype.__set_mesh},
  4. 'options': { enumerable: true, configurable: true, get: GPUDrawCall.prototype.__get_options, set: GPUDrawCall.prototype.__set_options},
  5. 'modelMatrix': { enumerable: true, configurable: true, get: GPUDrawCall.prototype.__get_modelMatrix, set: GPUDrawCall.prototype.__set_modelMatrix},
  6. 'material': { enumerable: true, configurable: true, get: GPUDrawCall.prototype.__get_material, set: GPUDrawCall.prototype.__set_material}
  7. })
  8. }
  9. GPUDrawCall.prototype.__get_mesh = function() {
  10. var retVal = new Mesh()
  11. retVal.__ptr = Polycode.GPUDrawCall__get_mesh(this.__ptr)
  12. return retVal
  13. }
  14. GPUDrawCall.prototype.__set_mesh = function(val) {
  15. Polycode.GPUDrawCall__set_mesh(this.__ptr, val.__ptr)
  16. }
  17. GPUDrawCall.prototype.__get_options = function() {
  18. var retVal = new GPUDrawOptions()
  19. retVal.__ptr = Polycode.GPUDrawCall__get_options(this.__ptr)
  20. return retVal
  21. }
  22. GPUDrawCall.prototype.__set_options = function(val) {
  23. Polycode.GPUDrawCall__set_options(this.__ptr, val.__ptr)
  24. }
  25. GPUDrawCall.prototype.__get_modelMatrix = function() {
  26. var retVal = new Matrix4()
  27. retVal.__ptr = Polycode.GPUDrawCall__get_modelMatrix(this.__ptr)
  28. return retVal
  29. }
  30. GPUDrawCall.prototype.__set_modelMatrix = function(val) {
  31. Polycode.GPUDrawCall__set_modelMatrix(this.__ptr, val.__ptr)
  32. }
  33. GPUDrawCall.prototype.__get_material = function() {
  34. var retVal = new Material()
  35. retVal.__ptr = Polycode.GPUDrawCall__get_material(this.__ptr)
  36. return retVal
  37. }
  38. GPUDrawCall.prototype.__set_material = function(val) {
  39. Polycode.GPUDrawCall__set_material(this.__ptr, val.__ptr)
  40. }