resize(width, height)
    {
        const gl = this.gl;

        this.width = width;
        this.height = height;

        if (this.texture)
        {
            this.texture.uploadData(null, width, height);
        }

        if (this.stencil)
        {
            // update the stencil buffer width and height
            gl.bindRenderbuffer(gl.RENDERBUFFER, this.stencil);
            gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, width, height);
        }
    }
/**
     * Resizes the drawing area of the buffer to the given width and height
     *
     * @param {number} width - the new width
     * @param {number} height - the new height
     */
Resizes the drawing area of the buffer to the given width and height
@param {number} width - the new width
@param {number} height - the new height
Resizes the drawing area of the buffer to the given width and height @param { number } width - the new width @param { number } height - the new height
resize(width, height)
    {
        const gl = this.gl;
        this.width = width;
        this.height = height;
        if (this.texture)
        {
            this.texture.uploadData(null, width, height);
        }
        if (this.stencil)
        {
            gl.bindRenderbuffer(gl.RENDERBUFFER, this.stencil);
            gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, width, height);
        }
    }
resize ( width , height ) { const gl = this . gl ; this . width = width ; this . height = height ; if ( this . texture ) { this . texture . uploadData ( null , width , height ) ; } if ( this . stencil ) { gl . bindRenderbuffer ( gl . RENDERBUFFER , this . stencil ) ; gl . renderbufferStorage ( gl . RENDERBUFFER , gl . DEPTH_STENCIL , width , height ) ; } }
Resizes the drawing area of the buffer to the given width and height
 @param {number} width - the new width
 @param {number} height - the new height
Resizes the drawing area of the buffer to the given width and height @param { number } width - the new width @param { number } height - the new height
// update the stencil buffer width and height