ZMesh
27 items
- All (27)
- Constructors (1)
- Functions (11)
- Properties (15)
All
27constructorZMesh
constructor()
valattributeIds
val attributeIds: Set
valboneIndex
val boneIndex: ZBuffer?
valboneWeight
val boneWeight: ZBuffer?
valbuffers
val buffers: Map
The buffers expressed in a more cohesive way providing key + buffer data in one place
valcolor
val color: ZBuffer?
vardrawMode
var drawMode: ZDrawMode
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.
valnormal
val normal: ZBuffer?
valposition
val position: ZBuffer?
valrefId
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.
valrenderer
val renderer: ZMeshRenderer
valuv
val uv: ZBuffer?
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.
funhasBuffer
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.
funinitialize
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
fununbind
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.
Constructors
1constructorZMesh
constructor()
Functions
11funbind
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.
funhasBuffer
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.
funinitialize
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
fununbind
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.
Properties
15valattributeIds
val attributeIds: Set
valboneIndex
val boneIndex: ZBuffer?
valboneWeight
val boneWeight: ZBuffer?
valbuffers
val buffers: Map
The buffers expressed in a more cohesive way providing key + buffer data in one place
valcolor
val color: ZBuffer?
vardrawMode
var drawMode: ZDrawMode
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.
valnormal
val normal: ZBuffer?
valposition
val position: ZBuffer?
valrefId
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.
valrenderer
val renderer: ZMeshRenderer
valuv
val uv: ZBuffer?