API reference

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

I

interfaceRenderingApplicationOptions

@codexo/exojs / core / stable

4
props
0
methods
0
events
Import
import { RenderingApplicationOptions } from '@codexo/exojs'
Properties4
How the canvas composites against the page. Default 'opaque'. Honoured by both backends: WebGL2 derives the context's alpha/premultipliedAlpha from it, WebGPU its GPUCanvasConfiguration.alphaMode.
debug?: boolean
WebGL2-only debug wrapper. Ignored by WebGPU.
spriteRendererBatchSize?: number
WebGL2 sprite renderer batch size. Ignored by WebGPU.
webglAttributes?: Omit<WebGLContextAttributes, "alpha" | "premultipliedAlpha" | "stencil">
WebGL2 context attributes. Ignored by WebGPU. Merged as **partial overrides on top of ExoJS's own WebGL defaults** (antialias: false, depth: false, preserveDrawingBuffer: false) - passing e.g. { antialias: true } only flips that one attribute and keeps the rest of ExoJS's defaults, it never replaces the whole default set with the browser's own WebGL-spec defaults. Two attributes are not settable here because the engine owns them outright and always overrides whatever is passed: - alpha and premultipliedAlpha are derived from RenderingApplicationOptions.alphaMode, which is the one spelling of that contract both backends understand. - stencil is always forced to true - geometric stencil clipping needs a stencil buffer on the root target unconditionally.
Source