gloss_renderer/components/
misc_comps.rs

1/// Each entity is identifies with an unique name. This component stores this
2/// name.
3pub struct Name(pub String);
4
5/// Faces from the obj file are reindexed when reading them
6/// For example if the first two faces are [4,2,6] and [4,3,7]
7/// they will be stored inside the mesh.indices as [0,1,2] and [0,2,3]
8/// To obtain back the original index we use this `face_reindex` which maps from
9/// final_index->original_index Therefore `faces_original_index`[0]=4 and
10/// `faces_original_index`[1]=2
11pub struct FacesOriginalIndex(pub Vec<u32>);