RenderBuffer.js 545 B

1234567891011121314151617181920
  1. function RenderBuffer(width,height,attachDepthBuffer,floatingPoint) {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.RenderBuffer(width,height,attachDepthBuffer,floatingPoint)
  4. }
  5. }
  6. Duktape.fin(RenderBuffer.prototype, function (x) {
  7. if (x === RenderBuffer.prototype) {
  8. return;
  9. }
  10. Polycode.RenderBuffer__delete(x.__ptr)
  11. })
  12. RenderBuffer.prototype.getWidth = function() {
  13. return Polycode.RenderBuffer_getWidth(this.__ptr)
  14. }
  15. RenderBuffer.prototype.getHeight = function() {
  16. return Polycode.RenderBuffer_getHeight(this.__ptr)
  17. }