Skip to main content

Overlay examples

Worked examples for the overlay package — each one covers a feature end to end, with the surrounding code you need rather than a single call in isolation.

For the generated per-symbol documentation, see the overlay API reference.

Examples

Shared texture rendering

Render overlay windows through a GPU shared texture to cut per-frame CPU overhead. Read this if you are adopting useSharedTexture: it covers how to gate window creation on per-game availability and on hardware acceleration, how to handle the shared-texture-unavailable event, when to reach for setGpuPreference, and the transparent-pixel hit-testing limitation to plan around.