| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- function GPUDrawBuffer() {
- Object.defineProperties(this, {
- 'projectionMatrix': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_projectionMatrix, set: GPUDrawBuffer.prototype.__set_projectionMatrix},
- 'viewMatrix': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_viewMatrix, set: GPUDrawBuffer.prototype.__set_viewMatrix},
- 'cameraMatrix': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_cameraMatrix, set: GPUDrawBuffer.prototype.__set_cameraMatrix},
- 'clearColor': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_clearColor, set: GPUDrawBuffer.prototype.__set_clearColor},
- 'clearDepthBuffer': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_clearDepthBuffer, set: GPUDrawBuffer.prototype.__set_clearDepthBuffer},
- 'clearColorBuffer': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_clearColorBuffer, set: GPUDrawBuffer.prototype.__set_clearColorBuffer},
- 'backingResolutionScale': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_backingResolutionScale, set: GPUDrawBuffer.prototype.__set_backingResolutionScale},
- 'viewport': { enumerable: true, configurable: true, get: GPUDrawBuffer.prototype.__get_viewport, set: GPUDrawBuffer.prototype.__set_viewport}
- })
- }
- GPUDrawBuffer.prototype.__get_projectionMatrix = function() {
- var retVal = new Matrix4()
- retVal.__ptr = Polycode.GPUDrawBuffer__get_projectionMatrix(this.__ptr)
- return retVal
- }
- GPUDrawBuffer.prototype.__set_projectionMatrix = function(val) {
- Polycode.GPUDrawBuffer__set_projectionMatrix(this.__ptr, val.__ptr)
- }
- GPUDrawBuffer.prototype.__get_viewMatrix = function() {
- var retVal = new Matrix4()
- retVal.__ptr = Polycode.GPUDrawBuffer__get_viewMatrix(this.__ptr)
- return retVal
- }
- GPUDrawBuffer.prototype.__set_viewMatrix = function(val) {
- Polycode.GPUDrawBuffer__set_viewMatrix(this.__ptr, val.__ptr)
- }
- GPUDrawBuffer.prototype.__get_cameraMatrix = function() {
- var retVal = new Matrix4()
- retVal.__ptr = Polycode.GPUDrawBuffer__get_cameraMatrix(this.__ptr)
- return retVal
- }
- GPUDrawBuffer.prototype.__set_cameraMatrix = function(val) {
- Polycode.GPUDrawBuffer__set_cameraMatrix(this.__ptr, val.__ptr)
- }
- GPUDrawBuffer.prototype.__get_clearColor = function() {
- var retVal = new Color()
- retVal.__ptr = Polycode.GPUDrawBuffer__get_clearColor(this.__ptr)
- return retVal
- }
- GPUDrawBuffer.prototype.__set_clearColor = function(val) {
- Polycode.GPUDrawBuffer__set_clearColor(this.__ptr, val.__ptr)
- }
- GPUDrawBuffer.prototype.__get_clearDepthBuffer = function() {
- return Polycode.GPUDrawBuffer__get_clearDepthBuffer(this.__ptr)
- }
- GPUDrawBuffer.prototype.__set_clearDepthBuffer = function(val) {
- Polycode.GPUDrawBuffer__set_clearDepthBuffer(this.__ptr, val)
- }
- GPUDrawBuffer.prototype.__get_clearColorBuffer = function() {
- return Polycode.GPUDrawBuffer__get_clearColorBuffer(this.__ptr)
- }
- GPUDrawBuffer.prototype.__set_clearColorBuffer = function(val) {
- Polycode.GPUDrawBuffer__set_clearColorBuffer(this.__ptr, val)
- }
- GPUDrawBuffer.prototype.__get_backingResolutionScale = function() {
- var retVal = new Vector2()
- retVal.__ptr = Polycode.GPUDrawBuffer__get_backingResolutionScale(this.__ptr)
- return retVal
- }
- GPUDrawBuffer.prototype.__set_backingResolutionScale = function(val) {
- Polycode.GPUDrawBuffer__set_backingResolutionScale(this.__ptr, val.__ptr)
- }
- GPUDrawBuffer.prototype.__get_viewport = function() {
- var retVal = new Rectangle()
- retVal.__ptr = Polycode.GPUDrawBuffer__get_viewport(this.__ptr)
- return retVal
- }
- GPUDrawBuffer.prototype.__set_viewport = function(val) {
- Polycode.GPUDrawBuffer__set_viewport(this.__ptr, val.__ptr)
- }
- Duktape.fin(GPUDrawBuffer.prototype, function (x) {
- if (x === GPUDrawBuffer.prototype) {
- return;
- }
- Polycode.GPUDrawBuffer__delete(x.__ptr)
- })
|