Creates a new FrameBuffer instance.
Collection of tags associated with this object
Static
Readonly
InvalidInvalid object UID constant
Static
currentCurrent maximum object count for UID generation
Gets all color attachments as an array of renderable objects.
Array of color attachment renderables
Gets the render buffer targets for all color attachments.
Array of render buffer target enums for color attachments
Gets the depth attachment if one is set.
The depth attachment renderable or undefined
Gets the depth-stencil attachment if one is set.
The depth-stencil attachment renderable or undefined
Gets the unique identifier for this framebuffer.
The framebuffer's CG API resource handle
Gets the unique object identifier
The object's UID
Gets the stencil attachment if one is set.
The stencil attachment renderable or undefined
Gets the unique name of this object
The unique name string
Internal
Copies tag data from another RnObject instance to this object
The source RnObject to copy tags from
Gets the render target texture attached to the specified color attachment index.
The color attachment index
The render target texture or undefined if not found or not a render target texture
Gets the render target texture attached as the depth attachment.
The depth render target texture or undefined if not found or not a render target texture
Checks if this object has all the specified tags with exactly matching values
Object containing tag names as keys and expected values
True if all specified tags exist with matching values, false otherwise
Checks if the object's combined tag string contains all the provided search strings. This allows for flexible searching within tag names and values.
Array of strings that must all be present in the combined tag string
True if all strings are found in the combined tag string, false otherwise
Sets a color attachment at the specified index.
The color attachment index
The renderable object to attach
True if the attachment was successful, false if dimensions don't match
Sets a color attachment for a specific face of a cube texture.
The color attachment index
The cube face index (0-5)
The mip level to attach
The cube texture renderable to attach
True if the attachment was successful, false if dimensions don't match
Sets a color attachment layer at the specified index for array textures.
The color attachment index
The renderable object to attach
The layer index within the array texture
The mip level to attach
True if the attachment was successful, false if dimensions don't match
Sets the depth attachment for this framebuffer.
The renderable object to use as depth attachment
True if the attachment was successful, false if dimensions don't match
Sets the combined depth-stencil attachment for this framebuffer.
The renderable object to use as depth-stencil attachment
True if the attachment was successful, false if dimensions don't match
Sets the stencil attachment for this framebuffer.
The renderable object to use as stencil attachment
True if the attachment was successful, false if dimensions don't match
Attempts to set a tag on this object. If the tag already exists, it will be replaced.
The tag object containing the name and value to set
True if the tag was successfully set, false if the tag name contains invalid characters
Attempts to set a unique name for this object
The desired unique name
If true, appends UID to make name unique when conflicts occur; if false, fails on conflict
True if the name was successfully set, false if there was a conflict and toAddNameIfConflict was false
Finds the index of the specified renderable in the color attachments array.
The renderable object to search for
The index of the renderable in color attachments, or -1 if not found
Static
_resetStatic
getStatic
getStatic
searchSearches for the first object that has a specific tag with the given value
The tag name to search for
The tag value to match
WeakRef to the first matching object, or undefined if not found
FrameBuffer class represents a framebuffer object that manages render targets for off-screen rendering operations. It handles color, depth, and stencil attachments and provides methods to configure and manage the framebuffer state.