API reference

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

C

classRenderingContext

@codexo/exojs / rendering / stable

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

5
props
4
methods
0
events
Import
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

Constructors 1
new(backend: RenderBackend): RenderingContext
Methods 4
render(node: RenderNode, options: RenderOptions): void
renderTo(node: RenderNode, options: RenderToOptions): RenderTexture
resize(width: number, height: number): void
update(deltaMs: number): void
Properties 5
backend: RenderBackend
camera: Camera
screenView: View
stats: RenderStats
view: View
Source