Create a framebuffer.
The rendering context.
The current draw buffers. false
represents no buffer, true
represents the back buffer, and an integer represents the corresponding color buffer.
BadValueError if too many draw buffers are specified for the current environment.
The height of this framebuffer.
The current read buffer. false
represents no buffer, true
represents the back buffer, and an integer represents the corresponding color buffer.
The status of this framebuffer.
The width of this framebuffer.
Attach a 2D texture to this framebuffer.
Specify the depth attachment, the stencil attachment, the depth stencil attachment, or the index of a color attachment.
The texture to attach.
Optional
_: undefinedAn unused value.
Optional
level: numberThe level of the texture to attach. Defaults to the top level.
Optional
layer: numberThe layer of the texture to attach, or undefined
for the entire texture.
BadValueError if the size of the texture does not match the size of any existing attachment to the framebuffer.
Attach a face of a cubemapped texture to this framebuffer.
Specify the depth attachment, the stencil attachment, the depth stencil attachment, or the index of a color attachment.
The texture to attach.
The face of the cubemapped texture to attach.
Optional
level: numberThe level of the texture to attach. Defaults to the top level.
Optional
layer: numberThe layer of the texture to attach, or undefined
for the entire texture.
BadValueError if the size of the texture does not match the size of any existing attachment to the framebuffer.
Attach a renderbuffer to this framebuffer.
Specify the depth attachment, the stencil attachment, the depth stencil attachment, or the index of a color attachment.
The renderbuffer to attach.
BadValueError if the size of the renderbuffer does not match the size of any existing attachment to the framebuffer.
A portion of contiguous memory that contains a collection of buffers that store color, alpha, depth, and stencil information that is used to render an image.
See
WebGLFramebuffer