API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeRenderSurface

@codexo/exojs / core / stable

Anything a render backend can acquire a drawing context from and size in device pixels. Deliberately narrow: a surface has a backing-store size and hands out a WebGL2 or WebGPU context, and that is the whole contract the backends need. Focus, cursor, pointer capture, CSS, layout and the surrounding document are interaction concerns and live on PlatformAdapter instead, because an `OffscreenCanvas` has none of them and faking them would only move the failure later.

0
props
0
methods
0
events
Import
import { RenderSurface } from '@codexo/exojs'

Anything a render backend can acquire a drawing context from and size in device pixels.

Deliberately narrow: a surface has a backing-store size and hands out a WebGL2 or WebGPU context, and that is the whole contract the backends need. Focus, cursor, pointer capture, CSS, layout and the surrounding document are interaction concerns and live on PlatformAdapter instead, because an `OffscreenCanvas` has none of them and faking them would only move the failure later.

Definition1
HTMLCanvasElement | OffscreenCanvas
Source