Skip to main content

ZTexture

actualpackageZTexture
16 items
constructorZTexture
constructor()constructor(id: String, width: Int, height: Int, flipX: Boolean, flipY: Boolean, dataArray: ByteArray)
var dataArray: ByteArray
Represents an array of bytes used for storing the image data.
var flipX: Boolean
Represents whether the texture should be flipped horizontally.
var flipY: Boolean
Represents whether the texture should be flipped vertically.
var height: Int
Represents the height of the texture image
varid
var id: String
override val isInitialized: Boolean
Represents a boolean value indicating whether a component has been initialized.
override val isRenderizable: Boolean
Represents a boolean value indicating whether a component is renderizable.
val isSerializable: Boolean
Indicates whether this component can be serialized.
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.
val renderer: ZTextureRenderer
Provides access to the component's renderer.
var width: Int
Represents the width of the texture image
funbind
open override fun bind()
Binds the renderer. This method is called to prepare the renderer for drawing.
open override fun createRenderer(ctx: ZRenderingContext): ZTextureRenderer
Creates a new renderer instance for this component.
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.