ZViewport
Represents a viewport box for rendering objects in Zernikalos.
Properties
Represents the clear color used for rendering in a viewport.
Provides access to the component's serializable data.
Represents a boolean value indicating whether a component has been initialized.
Represents a boolean value indicating whether a component is renderizable.
Provides access to the component's renderer.
Functions
Builds or refreshes the GPU render-pass descriptor for this viewport. Returns null when attachments are unavailable (e.g. zero-sized view box).
Initializes the ZComponent using the provided ZRenderingContext.
Notifies the listener when the viewport dimensions change.
Per-frame GPU setup for scene-graph consumers. On OpenGL this clears the framebuffer. On WebGPU this is a no-op; the renderer calls buildRenderPassDescriptor before the pass.