| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- function GPUDrawBuffer() {
- if(arguments[0] != "__skip_ptr__") {
- this.__ptr = Polycode.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)
- })
|