API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceRenderToOptions
@codexo/exojs / rendering / stable
Options for DrawContext.renderTo: a caller-owned, per-frame off-screen target, reused across frames (no per-call allocation). Unlike RenderingContext.capture, the target is supplied by the caller.
3
props
0
methods
0
events
Import
import { RenderToOptions } from '@codexo/exojs'Options for DrawContext.renderTo: a caller-owned, per-frame off-screen target, reused across frames (no per-call allocation). Unlike RenderingContext.capture, the target is supplied by the caller.
Properties3
Clear the target to this colour before rendering; omitted preserves its contents.
target: RenderTargetRenderable destination - either the on-screen canvas (the `root` target owned by the backend) or an offscreen texture (a RenderTexture). Owns a default View th… | RenderTextureAn off-screen render target that can also be sampled as a texture. Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (sca…Destination, owned and kept stable by the caller: a RenderTexture, or a MultiRenderTarget when one pass has to fill several colour attachments.
View to render with. Defaults to the target's own view.
Source