Skip to content

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

ParameterTypeDescription
optionsTextmodeFramebufferOptionsFramebuffer configuration.

Returns

TextmodeFramebuffer

The created framebuffer.

Example