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 (camera, screenView, etc.) context.renderTo(node, opts) // into an off-screen 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 (camera, screenView, etc.) context.renderTo(node, opts) // into an off-screen RenderTexture
new(backend: RenderBackend): RenderingContext render(node: RenderNode, options: RenderOptions): void renderTo(node: RenderNode, options: RenderToOptions): RenderTexture resize(width: number, height: number): void update(deltaMs: number): void backend: RenderBackend camera: Camera screenView: View stats: RenderStats view: View