ZPerspectiveLens

Represents a perspective lens used for rendering in Zernikalos.

Parameters

data

The ZPerspectiveLensData associated with the lens

See also

Constructors

Link copied to clipboard
constructor(near: Float, far: Float, fov: Float)
constructor(near: Float, far: Float, fov: Float, aspectRatio: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Provides access to the component's serializable data.

Link copied to clipboard
var fov: Float

Represents the field of view angle for the lens in a ZPerspectiveLens.

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

The projection matrix for the lens

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.

Functions

Link copied to clipboard
override fun dispose()

Disposes the component and releases resources. Idempotent: multiple calls are safe. Subclasses with own state to release should override internalDispose.

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.