Umbra::MeshLoader class

Mesh loader interface.

Constructors, destructors, conversion operators

MeshLoader()

Public functions

auto setBuffers(const DataBuffer vertexBuffers[VertexAttribute_Last], const DataBuffer& indexBuffer) -> bool pure virtual
auto done() const -> bool pure virtual
auto loadNext(uint32_t* numVertices, uint32_t* numIndices) -> bool pure virtual
auto getMeshBounds() const -> const Float3MinMax& pure virtual
auto load(const DataBuffer vertexBuffers[VertexAttribute_Last], const DataBuffer& indexBuffer) -> bool

Public variables

UserPointer material
The UserPointer set in AssetJob::finish.
uint32_t uniqueVertexCount
Number of unique vertices in mesh, actual count can be more if mesh is split by user.
uint32_t indexCount
Number of indices in mesh.
uint32_t attributes
Bitmask of VertexAttribute bits indicating available attributes.