1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use Debug;
use Hash;
/// A name for one repaintable part of a mesh.
///
/// Required if you want to repaint one part of a mesh and leave the rest:
/// derive it on an enum whose variants are the loaded mesh's material
/// names, and name that enum where the mesh implements
/// [`Mesh`](crate::mesh::Mesh).
/// The vocabulary of a mesh with no parts a draw repaints one at a time.
///
/// A mesh that states no part vocabulary reads as this one, so a game
/// never writes it. It has no value, so no draw of such a mesh can call
/// [`material_of`](crate::mesh::Instance::material_of);
/// [`material`](crate::mesh::Instance::material) repaints every slot of
/// any mesh.