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 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
Link copied to clipboard
var height: Int

Represents the height of the texture image

Link copied to clipboard
var id: String

Represents the unique identifier for an instance of a ZTexture object.

Link copied to clipboard
override val isInitialized: Boolean

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

Link copied to clipboard
open override val isRenderizable: Boolean = true

Represents a boolean value indicating whether a component is renderizable.

Link copied to clipboard
override val refId: Int

Represents the unique reference identifier for a component.

Link copied to clipboard
val renderer: ZTextureRenderer
Link copied to clipboard
var width: Int

Represents the width of the texture image

Functions

Link copied to clipboard
open fun bind()

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

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

Initializes the ZComponent using the provided ZRenderingContext.

Link copied to clipboard
open fun unbind()

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