Skip to main content

ZBuffer

actualpackageZBuffer
24 items
constructorZBuffer
constructor()constructor(id: Int, dataType: ZDataType, name: String, size: Int, count: Int, normalized: Boolean, offset: Int, stride: Int, isIndexBuffer: Boolean, bufferId: Int, dataArray: ByteArray)
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.
val attributeId: ZAttributeId
val bufferId: Int
Represents the buffer ID associated with the ZBuffer.
val count: Int
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.
val dataArray: ByteArray
Represents an array of bytes for ZBufferData data.
val dataType: ZDataType
Type of data stored
var enabled: Boolean
val hasData: Boolean
Indicates whether the data has any data.
valid
val id: Int
ID for this Buffer.
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.
valname
val name: String
val normalized: Boolean
val offset: Int
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: ZBufferRenderer
valsize
val size: Int
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
val stride: Int
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
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
open override fun toString(): String
open override fun unbind()
Unbinds the renderer. This method is called after drawing to clean up.