ZTexture

class ZTexture : ZRenderizableComponent<ZTextureRenderer> , ZBindeable(source)

Represents a texture component in the Zernikalos framework.

Constructors

Link copied to clipboard
constructor()
constructor(id: String, width: Int, height: Int, flipX: Boolean, flipY: Boolean, dataArray: ByteArray)

Properties

Link copied to clipboard

Represents the channel format (e.g., RGBA, RGB, R).

Link copied to clipboard

Represents the color space (LINEAR or SRGB).

Link copied to clipboard

Represents an array of bytes used for storing the image data.

Link copied to clipboard

Represents whether the texture should be flipped horizontally.

Link copied to clipboard

Represents whether the texture should be flipped vertically.

Link copied to clipboard
var height: Int

Represents the height of the texture image

Link copied to clipboard
var id: String
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

Represents the magnification filter mode for the texture.

Link copied to clipboard

Represents the minification filter mode for the texture.

Link copied to clipboard

Represents whether the texture values are normalized.

Link copied to clipboard

Represents the pixel type (e.g., UNSIGNED_BYTE, FLOAT).

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
val renderer: ZTextureRenderer

Provides access to the component's renderer.

Link copied to clipboard
var width: Int

Represents the width of the texture image

Link copied to clipboard

Represents the wrap mode for the U (horizontal) texture coordinate.

Link copied to clipboard

Represents the wrap mode for the V (vertical) texture coordinate.

Functions

Link copied to clipboard
open override fun bind()

Binds the renderer. This method is called to prepare the renderer for drawing.

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

Initializes the ZComponent using the provided ZRenderingContext.

Link copied to clipboard
open override fun unbind()

Unbinds the renderer. This method is called after drawing to clean up.