textmode.js / Textmodifier / createFramebuffer
Method: createFramebuffer()
ts
createFramebuffer(options): TextmodeFramebuffer;Create a framebuffer for offscreen rendering.
The framebuffer uses the same MRT structure as the main rendering pipeline. By default it allocates 3 attachments (character + color data).
Parameters
| Parameter | Type | Description |
|---|---|---|
options | TextmodeFramebufferOptions | Framebuffer configuration. |
Returns
The created framebuffer.