ZViewport

Represents a viewport box for rendering objects in Zernikalos.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Represents the clear color used for rendering in a viewport.

Link copied to clipboard

Provides access to the component's serializable data.

Link copied to clipboard
override val isInitialized: Boolean

Represents a boolean value indicating whether a component has been initialized.

Link copied to clipboard
override val isRenderizable: Boolean

Represents a boolean value indicating whether a component is renderizable.

Link copied to clipboard

Indicates whether this component can be serialized.

Link copied to clipboard
override val refId: String

Represents the unique identifier for a reference-based component. The refId is used as a distinctive key for retrieving or linking this component within reference-dependent systems.

Link copied to clipboard

Provides access to the component's renderer.

Link copied to clipboard

Represents the view box used as viewport for rendering objects. The view box defines the boundaries and dimensions of the viewport.

Functions

Link copied to clipboard
open override fun initialize(ctx: ZRenderingContext)

Initializes the ZComponent using the provided ZRenderingContext.

Link copied to clipboard
open override fun onViewportResize(width: Int, height: Int)

Notifies the listener when the viewport dimensions change.

Link copied to clipboard
open override fun render()

Renders the object's visual representation on the screen.