Skip to content

textmode.js / plugins / TextmodePluginContext / registerPreDrawHook

Method: registerPreDrawHook()

ts
registerPreDrawHook(callback): () => void;

Register a callback to be invoked before each draw cycle. Happens just before any framebuffer

Parameters

ParameterType
callbackTextmodePluginHook

Returns

A function to unregister the hook.

() => void

Example