Skip to main content

ZUniform

actualpackageZUniform
15 items
constructorZUniform
constructor(id: Int, uniformName: String, count: Int, dataType: ZDataType)constructor()
var count: Int
How many elements of this will be used
var dataType: ZDataType
The datatype of all individual elements used by this uniform
varid
open override var id: Int
Represents the unique identifier for a ZUniform instance. This ID is used to differentiate between different uniform components
override val isInitialized: Boolean
Represents a boolean value indicating whether a component has been initialized.
open override val isRenderizable: Boolean = true
Represents a boolean value indicating whether a component is renderizable.
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: ZUniformRenderer
open override var uniformName: String
This is the name within the shader source code
open override var value: ZAlgebraObject
funbind
open override fun bind()
Binds the renderer. This method is called to prepare the renderer for drawing.
open override fun createRenderer(ctx: ZRenderingContext): ZUniformRenderer
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
open override fun toString(): String
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.