ZMesh

Mesh will provide: A relationship between the BufferKey and its RawBuffers in a more cohesive way providing just Buffers

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
Link copied to clipboard

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

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
override val isRenderizable: Boolean

Represents a boolean value indicating whether a component is renderizable.

Link copied to clipboard

Indicates whether this component can be serialized.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
val renderer: ZMeshRenderer

Provides access to the component's renderer.

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 override 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
open override fun initialize(ctx: ZRenderingContext)

Initializes the ZComponent using the provided ZRenderingContext.

Link copied to clipboard
open override fun render()

Renders the object's visual representation on the screen.

Link copied to clipboard
open override fun unbind()

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