コード例 #1
0
//------------------------------------------------------------------------
// Purpose  : Push the Static Geometry into Manager from Text File
//------------------------------------------------------------------------
void	StaticGeometryManager::AddToStaticGeometryList(const std::string& fileName, 
														const Helper::StaticGeomData& data)
{
	StaticGeometry*	tempGeom = new StaticGeometry();

	if (tempGeom != NULL)
	{
		if(tempGeom->Initialize(data))
			m_GeomList.insert(std::make_pair(tempGeom, fileName));
	}
}
コード例 #2
0
//------------------------------------------------------------------------ 
// Purpose  : Push the Static Geometry into Manager
//------------------------------------------------------------------------
void	StaticGeometryManager::AddToStaticGeometryList(const std::string& fileName, 
														const std::string& meshName)
{
	StaticGeometry*	tempGeom = new StaticGeometry();

	if (tempGeom != NULL)
	{
		tempGeom->Initialize(fileName);
		m_GeomList.insert(std::make_pair(tempGeom, meshName));
	}
}