Class: Renderbuffer

Renderbuffer()

new Renderbuffer()

Offscreen drawing attachment.
Properties:
Name Type Description
gl WebGLRenderingContext The WebGL context.
renderbuffer WebGLRenderbuffer Handle to the renderbuffer.
width number Renderbuffer width.
height number Renderbuffer height.
internalFormat GLenum Internal arrangement of the renderbuffer data.
samples number Number of MSAA samples.
Source:

Methods

delete() → {Renderbuffer}

Delete this renderbuffer.
Source:
Returns:
The Renderbuffer object.
Type
Renderbuffer

resize(width, height) → {Renderbuffer}

Resize the renderbuffer.
Parameters:
Name Type Description
width number New width of the renderbuffer.
height number New height of the renderbuffer.
Source:
Returns:
The Renderbuffer object.
Type
Renderbuffer

restore() → {Renderbuffer}

Restore renderbuffer after context loss.
Source:
Returns:
The Renderbuffer object.
Type
Renderbuffer