MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ empty()

static MeshData MayaFlux::Kakshya::MeshData::empty ( )
inlinestatic

Construct an empty MeshData with the canonical 60-byte mesh layout.

Both variants are initialised to empty vectors of the correct type so MeshInsertion can append into them without a type-check on first write.

Definition at line 49 of file MeshData.hpp.

50 {
51 MeshData d;
52 d.vertex_variant = std::vector<uint8_t> {};
53 d.index_variant = std::vector<uint32_t> {};
54 d.layout = VertexLayout::for_meshes(60);
55 return d;
56 }
static VertexLayout for_meshes(uint32_t stride=60)
Factory: layout for MeshVertex (position, color, weight, uv, normal, tangent)

References index_variant, layout, and vertex_variant.

Referenced by MayaFlux::IO::ModelReader::extract_single_mesh().

+ Here is the caller graph for this function: