ZMesh
27 items
constructorZMesh
constructor()
valattributeIds
val attributeIds: Set<ZAttributeId>
valboneWeight
val boneWeight: ZBuffer?
valbuffers
The buffers expressed in a more cohesive way providing key + buffer data in one place
val hasIndexBuffer: Boolean
Indicates whether the given ZMesh has an index buffer or not.
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
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.
funbind
open override fun bind()
Binds the renderer. This method is called to prepare the renderer for drawing.
funcontains
operator fun contains(attrId: ZAttributeId): Boolean
open override fun createRenderer(ctx: ZRenderingContext): ZMeshRenderer
funget
operator fun get(attrId: ZAttributeId): ZBuffer?
fun getBufferById(attrId: ZAttributeId): ZBuffer?
Gets the buffer by the specified attribute ID.
fun getBufferByName(name: String): ZBuffer?
Gets the buffer by its name.
funhasBuffer
Checks if a buffer with the given name exists.Checks if a buffer with the given name exists by its ID.
funinitialize
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.