ECS/Project/Project/Renderers/VAOStorage/VAOStorage.cpp
//	Delete the Geometry Type from the VAO Storage.
Delete the Geometry Type from the VAO Storage.
Delete the Geometry Type from the VAO Storage .
void VAOStorage::deleteGeometryType(std::shared_ptr<GeometryTypeMetaData> deadGeometryType)
{
	deadGeometryType->vaoMetaData.lock()->geometryTypeMetaDatas.erase(deadGeometryType->geometryType);
	glDeleteBuffers(1, &deadGeometryType->EBO);
	glDeleteBuffers(1, &deadGeometryType->vertexVBO);
	glDeleteBuffers(1, &deadGeometryType->vertexNormalVBO);
	glDeleteBuffers(1, &deadGeometryType->vertexTextureVBO);
}
void VAOStorage :: deleteGeometryType ( std :: shared_ptr < GeometryTypeMetaData > deadGeometryType ) { deadGeometryType -> vaoMetaData . lock ( ) -> geometryTypeMetaDatas . erase ( deadGeometryType -> geometryType ) ; glDeleteBuffers ( 1 , & deadGeometryType -> EBO ) ; glDeleteBuffers ( 1 , & deadGeometryType -> vertexVBO ) ; glDeleteBuffers ( 1 , & deadGeometryType -> vertexNormalVBO ) ; glDeleteBuffers ( 1 , & deadGeometryType -> vertexTextureVBO ) ; }
Delete the Geometry Type from the VAO Storage.
Delete the Geometry Type from the VAO Storage .
//	Delete the Buffers.