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 (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

4
props
11
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 (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

Constructors 1
new(backend: RenderBackend): RenderingContext
Methods 11
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
Properties 4
backend: RenderBackend
screenView: View
stats: RenderStats
view: View
Source