Skip to main content

ZMesh

actualpackageZMesh
27 items

All

27
constructorZMesh
constructor()
val attributeIds: Set
val boneIndex: ZBuffer?
val boneWeight: ZBuffer?
val buffers: Map
The buffers expressed in a more cohesive way providing key + buffer data in one place
val color: ZBuffer?
var drawMode: ZDrawMode
val hasIndexBuffer: Boolean
Indicates whether the given ZMesh has an index buffer or not.
val indexBuffer: ZBuffer?
Represents an index buffer for a ZMesh.
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.
val normal: ZBuffer?
val position: ZBuffer?
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: ZMeshRenderer
valuv
val uv: ZBuffer?
fun addBuffer(buffer: ZBuffer)
Adds a buffer to the ZMesh.
funbind
open override fun bind()
Binds the renderer. This method is called to prepare the renderer for drawing.
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.
fun hasBuffer(name: String): Boolean
fun hasBuffer(attrId: ZAttributeId): Boolean
Checks if a buffer with the given name exists.Checks if a buffer with the given name exists by its ID.
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
open override fun render()
Renders the object's visual representation on the screen.
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.