Skip to main content

ZShaderProgram

actualpackageZShaderProgram
23 items
constructorZShaderProgram
constructor()
val attributeIds: Set<ZAttributeId>
val attributes: Map<String, ZAttribute>
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: ZShaderProgramRenderer
Provides access to the component's renderer.
val shaderSource: ZShaderSource
val uniforms: ZUniformCollection
val uniformsNames: Set<String>
fun addAttribute(attribute: ZAttribute)fun addAttribute(name: String, attribute: ZAttribute)
fun addUniform(name: String, uniform: ZBaseUniform)
fun addUniformBlock(name: String, uniformBlock: ZUniformBlock)
funbind
open override fun bind()
Binds the renderer. This method is called to prepare the renderer for drawing.
fun clearAttributes()
fun clearUniforms()
open override fun createRenderer(ctx: ZRenderingContext): ZShaderProgramRenderer
Creates a new renderer instance for this component.
fun getUniform(name: String): ZBaseUniform?
fun hasAttribute(name: String): Boolean
fun hasAttributeById(attrId: ZAttributeId): Boolean
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.