ZBuffer
24 items
constructorZBuffer
Initializes a new instance of ZBuffer class. It is used to instantiate a ZBuffer object with default data values.Initializes a ZBuffer object with the given arguments.
valattributeId
val attributeId: ZAttributeId
valcount
How many elements of this type are stored. Example: If we store 15 Vec3 elements in the data array the count will have a value of 15.
valdataArray
Represents an array of bytes for ZBufferData data.
val isIndexBuffer: Boolean
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.
valnormalized
val normalized: Boolean
valrefId
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: ZBufferRenderer
valsize
How many elements are stored per data unit. Example: a Vec3 will have size equals to 3 in the same way a Scalar will be 1
valstride
If the data is tightly represented within the array how many elements it requires to be jumped to the next one Example: We store a Vec3 postion and a Vec3 normal in the very same array, the stride will be 6
funbind
open override fun bind()
Binds the renderer. This method is called to prepare the renderer for drawing.
open override fun createRenderer(ctx: ZRenderingContext): ZBufferRenderer
funinitialize
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.