API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPassContext
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).
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).
new(_context: RenderingContext, target: RenderTarget, view: View): PassContext 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 target: RenderTarget view: View backend: RenderBackend