Skip to main content

ZMesh

actualpackageZMesh
28 items
constructorZMesh
constructor()
val attributeIds: Set<ZAttributeId>
val boneIndex: ZBuffer?
val boneWeight: ZBuffer?
val buffers: Map<String, ZBuffer>
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.
override val isRenderizable: Boolean
Represents a boolean value indicating whether a component is renderizable.
val isSerializable: Boolean
Indicates whether this component can be serialized.
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
Provides access to the component's renderer.
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
Creates a new renderer instance for this component.
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): Booleanfun 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.