Drastically reduced memory usage.

This commit is contained in:
David Williams
2008-02-12 19:32:56 +00:00
parent abb3def1e7
commit 66cc4a5eab
4 changed files with 29 additions and 1 deletions

View File

@ -37,6 +37,20 @@ namespace PolyVox
IndexedSurfacePatch* m_patchSingleMaterial;
IndexedSurfacePatch* m_patchMultiMaterial;
long int getSizeInBytes(void)
{
long int size = sizeof(RegionGeometry);
if(m_patchSingleMaterial)
{
size += m_patchSingleMaterial->getSizeInBytes();
}
if(m_patchMultiMaterial)
{
size += m_patchMultiMaterial->getSizeInBytes();
}
return size;
}
};
}