Lore archive · Warcraft Wiki, 2023 dump
API Frame SetIsFrameBuffer
Last wiki revision 2023-08-20
Controls whether or not a frame is rendered to its own framebuffer prior to being composited atop the UI. Frame:SetIsFrameBuffer(isFrameBuffer)
- isFrameBuffer: - to enable rendering this frame to a framebuffer, or to disable.
- Use of this flag allows frames to work around specific alpha-related issues when rendering.
- The frame must be configured to flatten render layers for this flag to have any effect. Failure to configure this may result in an invisible frame, or potentially assertion errors on test clients.
- The frame will be rendered to a framebuffer as if it were fully opaque. Any configured alpha for the frame is not inherited by direct children, causing their effective alpha to be 1 unless they themselves have a distinct alpha value. This can cause overlapping child frames to no longer blend together once rendered. The alpha value assigned to the frame is only applied once the framebuffer is composited atop the UI scene.
The following snippet will create a frame in the middle of the screen with two rows of partially transparent textures in the middle, with a checkbox below the frame to toggle the framebuffer flag that is disabled by default.
Toggling the checkbox will demonstrate the effects of the flag; the top row of textures will become less opaque while enabled, and the bottom row will not blend their alpha together such that the green texture in the middle will obscure the overlapping edges of its adjacent textures.
Source
https://warcraft.wiki.gg/wiki/API_Frame_SetIsFrameBuffer · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.