Creates a framebuffer.
The rendering context of the framebuffer.
Optional
depthAttachment: FramebufferAttachmentOptional
stencilAttachment: FramebufferAttachmentOptional
depthStencilAttachment: FramebufferAttachmentPrivate
Readonly
colorA list of color attachments on this framebuffer.
Readonly
contextThe rendering context of this framebuffer.
Private
Optional
depthThe depth attachment on this framebuffer.
Private
Optional
depthThe depth stencil attachment on this framebuffer.
Readonly
internalThe WebGL API interface of this framebuffer.
Private
Optional
stencilThe stencil attachment on this framebuffer.
The target binding point of this framebuffer.
The depth attachment on this framebuffer.
The depth attachment on this framebuffer.
The depth stencil attachment on this framebuffer.
The depth stencil attachment on this framebuffer.
The status of this framebuffer.
The stencil attachment on this framebuffer.
The stencil attachment on this framebuffer.
Private
attachAttaches a texture to this framebuffer.
Attaches a single layer of a texture to this framebuffer.
The texture to attach.
The attachment point of the texture.
Optional
layer: numberThe layer of the texture to attach.
Attaches a renderbuffer to this framebuffer.
The renderbuffer to attach.
The attachment point of the renderbuffer.
Gets a color attachment.
The index of the color attachment.
The color attachment.
Sets a color attachment.
The index of the color attachment.
The attachment.
Executes the given function with this framebuffer bound, then re-binds the previously-bound framebuffer.
The function to execute.
The return value of the executed function.
Static
Private
bindBinds a framebuffer to a binding point.
The rendering context of the framebuffer.
The target binding point.
The framebuffer.
Static
Private
getGets the internal representation of the currently-bound framebuffer.
The context that the framebuffer is bound to.
The target that the framebuffer is bound to.
The currently-bound framebuffer.
Static
setSets the drawing buffer array.
The rendering context.
Whether to not render to any attachment.
Whether to render to the back buffer.
A list of color attachments to render to.
Static
setSets the read buffer to none.
The rendering context.
Sets the read buffer to the back buffer.
The rendering context.
Whether to read from the back buffer.
Sets the read buffer to a color buffer.
The rendering context.
The color attachment to read from.
Static
unbindUnbinds a framebuffer from the given rendering context.
The rendering context.
The target binding point.
Generated using TypeDoc
A data structure that organizes the memory resources that are needed to render an image.
See
Framebuffers