API reference

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

C

classPassContext

@codexo/exojs / rendering / stable

Pass-scoped DrawContext: the active render target and view for a CallbackRenderPass callback. `clear`/`render`/`renderTo` route through the owning RenderingContext (and its pass coordinator), so they act on THIS pass's target and never reset the active view or leak onto another target. Default view for `render`/`draw*` is the pass view — not the world view — so a callback inside an off-screen redirect renders correctly without passing `{ view }` explicitly. Use backend only for raw draws or GPU state; switching target / view / clear through it bypasses the coordinator (the leak this type prevents).

3
props
5
methods
0
events
Import
import { PassContext } from '@codexo/exojs'

Pass-scoped DrawContext: the active render target and view for a CallbackRenderPass callback. `clear`/`render`/`renderTo` route through the owning RenderingContext (and its pass coordinator), so they act on THIS pass's target and never reset the active view or leak onto another target. Default view for `render`/`draw*` is the pass view — not the world view — so a callback inside an off-screen redirect renders correctly without passing `{ view }` explicitly.

Use backend only for raw draws or GPU state; switching target / view / clear through it bypasses the coordinator (the leak this type prevents).

Constructors 1
new(_context: RenderingContext, target: RenderTarget, view: View): PassContext
Methods 5
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
Properties 3
target: RenderTarget
view: View
backend: RenderBackend
Source