API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classRenderingContext
Owns rendering orchestration: builds, optimizes and plays the internal RenderPlan for a RenderNode subtree, manages render-target/view state for off-screen capture, and exposes the low-level backend as an escape hatch. The conceptual model is "the context renders the node": context.render(node) // into the active target (canvas by default) context.render(node, { view }) // override view (the world view, screenView, etc.) context.renderTo(node, { target }) // into a caller-owned off-screen target (per-frame) context.capture(node, { width, height }) // into a freshly allocated RenderTexture
import { RenderingContext } from '@codexo/exojs' Owns rendering orchestration: builds, optimizes and plays the internal RenderPlan for a RenderNode subtree, manages render-target/view state for off-screen capture, and exposes the low-level backend as an escape hatch.
The conceptual model is "the context renders the node": context.render(node) // into the active target (canvas by default) context.render(node, { view }) // override view (the world view, screenView, etc.) context.renderTo(node, { target }) // into a caller-owned off-screen target (per-frame) context.capture(node, { width, height }) // into a freshly allocated RenderTexture
new(backend: RenderBackend): RenderingContext capture(node: RenderNode, options: CaptureOptions): RenderTexture clear(color: Color): void drawBatch(batch: RenderBatch, options: DrawBatchOptions): void drawGeometry(geometry: Geometry, transform: Matrix, options: DrawGeometryOptions): void render(node: RenderNode, options: RenderOptions): void renderTo(node: RenderNode, options: RenderToOptions): void resize(width: number, height: number): void supportsColorFormat(format: ColorTextureFormat): boolean trackView(view: View): void untrackView(view: View): void update(delta: Time): void backend: RenderBackend screenView: View stats: RenderStats view: View