Types

Link copied to clipboard

Utility class for representing the mix of a ZBufferKey + ZRawBuffer in a simpler way Notice that ZBufferKey will only address one ZRawBuffer, however one ZRawBuffer can be addressed by more than one ZBufferKey

Link copied to clipboard
data class ZBufferData(var id: Int = -1, var dataType: ZDataType = ZTypes.NONE, var name: String = "", var size: Int = -1, var count: Int = -1, var normalized: Boolean = false, var offset: Int = -1, var stride: Int = -1, var isIndexBuffer: Boolean = false, var bufferId: Int = -1, var dataArray: ByteArray = byteArrayOf()) : ZComponentData
Link copied to clipboard
@Serializable(with = ZMeshSerializer::class)
class ZMesh : ZRenderizableComponent<ZMeshData, ZMeshRenderer> , ZBindeable, ZRenderizable

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

Link copied to clipboard
actual class ZMeshRenderer(ctx: ZRenderingContext, data: ZMeshData) : ZComponentRender<ZMeshData>
Link copied to clipboard

Functions

Link copied to clipboard
fun toMtlFormat(dataType: ZDataType): MTLVertexFormat