Got carried away with the cleaning up and removed some stuff that is still needed by Thermite. Would be nice to remove it in the future though.
This commit is contained in:
@ -105,6 +105,19 @@ namespace PolyVox
|
||||
|
||||
template <typename VertexType>
|
||||
void SurfaceMesh<VertexType>::addTriangle(uint32_t index0, uint32_t index1, uint32_t index2)
|
||||
{
|
||||
m_vecTriangleIndices.push_back(index0);
|
||||
m_vecTriangleIndices.push_back(index1);
|
||||
m_vecTriangleIndices.push_back(index2);
|
||||
|
||||
if((m_vecVertices[index0].material == m_vecVertices[index1].material) && (m_vecVertices[index0].material == m_vecVertices[index2].material))
|
||||
{
|
||||
m_mapUsedMaterials.insert(m_vecVertices[index0].material);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename VertexType>
|
||||
void SurfaceMesh<VertexType>::addTriangleCubic(uint32_t index0, uint32_t index1, uint32_t index2)
|
||||
{
|
||||
m_vecTriangleIndices.push_back(index0);
|
||||
m_vecTriangleIndices.push_back(index1);
|
||||
@ -124,6 +137,7 @@ namespace PolyVox
|
||||
m_vecVertices.clear();
|
||||
m_vecTriangleIndices.clear();
|
||||
m_vecLodRecords.clear();
|
||||
m_mapUsedMaterials.clear();
|
||||
}
|
||||
|
||||
template <typename VertexType>
|
||||
|
Reference in New Issue
Block a user