Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The buffers expressed in a more cohesive way providing key + buffer data in one place

Link copied to clipboard
Link copied to clipboard

Indicates whether the given ZMesh has an index buffer or not.

Link copied to clipboard
Link copied to clipboard

Represents an index buffer for a ZMesh.

Link copied to clipboard
override val isInitialized: Boolean

Represents a boolean value indicating whether a component has been initialized.

Link copied to clipboard
open override val isRenderizable: Boolean = true

Represents a boolean value indicating whether a component is renderizable.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override val refId: Int

Represents the unique reference identifier for a component.

Link copied to clipboard
val renderer: ZMeshRenderer
Link copied to clipboard
val uv: ZBuffer?

Functions

Link copied to clipboard
fun addBuffer(buffer: ZBuffer)

Adds a buffer to the ZMesh.

Link copied to clipboard
open fun bind()

Binds the renderer. This method is called to prepare the renderer for drawing.

Link copied to clipboard
operator fun contains(attrId: ZAttributeId): Boolean
Link copied to clipboard
operator fun get(attrId: ZAttributeId): ZBuffer?
Link copied to clipboard

Gets the buffer by the specified attribute ID.

Link copied to clipboard

Gets the buffer by its name.

Link copied to clipboard

Checks if a buffer with the given name exists.

Checks if a buffer with the given name exists by its ID.

Link copied to clipboard
override fun initialize(ctx: ZRenderingContext)

Initializes the ZComponent using the provided ZRenderingContext.

Link copied to clipboard
open fun render()

Draws the mesh on the screen using its renderer.

Link copied to clipboard
open fun unbind()

Unbinds the renderer. This method is called after drawing to clean up.