ZShaderProgram
22 items
- All (22)
- Constructors (1)
- Functions (12)
- Properties (9)
All
22constructorZShaderProgram
constructor()
valattributeIds
val attributeIds: Set
valattributes
val attributes: Map
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.
valrefId
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.
valrenderer
val renderer: ZShaderProgramRenderer
valshaderSource
val shaderSource: ZShaderSource
valuniforms
val uniforms: ZUniformCollection
val uniformsNames: Set
funaddAttribute
fun addAttribute(attribute: ZAttribute)
fun addAttribute(name: String, attribute: ZAttribute)
funaddUniform
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
fungetUniform
fun getUniform(name: String): ZBaseUniform?
funhasAttribute
fun hasAttribute(name: String): Boolean
fun hasAttributeById(attrId: ZAttributeId): Boolean
funinitialize
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
fununbind
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.
Constructors
1constructorZShaderProgram
constructor()
Functions
12funaddAttribute
fun addAttribute(attribute: ZAttribute)
fun addAttribute(name: String, attribute: ZAttribute)
funaddUniform
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
fungetUniform
fun getUniform(name: String): ZBaseUniform?
funhasAttribute
fun hasAttribute(name: String): Boolean
fun hasAttributeById(attrId: ZAttributeId): Boolean
funinitialize
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
fununbind
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.
Properties
9valattributeIds
val attributeIds: Set
valattributes
val attributes: Map
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.
valrefId
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.
valrenderer
val renderer: ZShaderProgramRenderer
valshaderSource
val shaderSource: ZShaderSource
valuniforms
val uniforms: ZUniformCollection
val uniformsNames: Set