ZMesh
Mesh will provide: A relationship between the BufferKey and its RawBuffers in a more cohesive way providing just Buffers
Properties
Indicates whether the given ZMesh has an index buffer or not.
Represents an index buffer for a ZMesh.
Represents a boolean value indicating whether a component has been initialized.
Represents a boolean value indicating whether a component is renderizable.
Functions
Adds a 16-bit index buffer (ZTypes.USHORT) using ZAttributeId.INDICES.
Adds a tightly packed per-vertex vec2 attribute buffer. ZBuffer.id and ZBuffer.bufferId are set to ZAttributeId.id for the given attr.
Adds a tightly packed per-vertex vec3 attribute buffer. ZBuffer.id and ZBuffer.bufferId are set to ZAttributeId.id for the given attr.
Gets the buffer by the specified attribute ID.
Gets the buffer by its name.
Initializes the ZComponent using the provided ZRenderingContext.