Module mesh

Source
Expand description

An upper layer wrapping for Mesh, utilizing the trait BufferVec as the Mesh generic type of the vertex buffer, element buffer, instance buffer, and command buffer

Structs§

Mesh
The mesh, every type of buffer is wrapped in a BufferVec can be manipulated just like a Vec
MeshWithMaterial

Enums§

ElementType
The type of the element buffer of the mesh, indicating the vertices were indexed by which type of index
PrimitiveMode
The primitive mode of the mesh, indicating how to draw the vertices to which type of the shapes

Traits§

GenericMesh
The GenericMesh trait helps the Mesh struct to be able to turn into an object
GenericMeshWithMaterial
The GenericMeshWithMaterial trait helps the MeshWithMaterial struct to be able to turn into an object

Type Aliases§

StaticMesh
The most typical static mesh type: use BufferVecStatic for vertices and elements(indices), use BufferVecDynamic for instances and draw commands