19 : FirstCollisionFaceIndex(0)
23 u32 FirstCollisionFaceIndex;
30 void Add(
int collisionFaceIndex, u16 materialIndex)
32 if (m_pairs.empty() || m_pairs.back().MaterialIndex != materialIndex)
35 Eegeo_ASSERT(collisionFaceIndex >= 0);
36 pair.FirstCollisionFaceIndex = collisionFaceIndex;
37 pair.MaterialIndex = materialIndex;
38 m_pairs.push_back(pair);
42 void Reserve(
size_t capacity) { m_pairs.reserve(capacity); }
43 void Clear() { m_pairs.clear(); }
45 const std::vector<CollisionMaterialIndexLookupPair>& Pairs()
const {
return m_pairs; }
47 std::vector<CollisionMaterialIndexLookupPair> m_pairs;