janwas
e2eb5b2610
mostly straightforward except for CVSFile / Filesystem. moved the former into the newly created latter component. removed VFSUtil entirely (that functionality is available from lib/file/file_system_util.h) Xeromyces.cpp: simplify buffer handling since smart pointers are now in play. also use WriteBuffer instead of membuffer. This was SVN commit r5519.
29 lines
555 B
C++
29 lines
555 B
C++
#ifndef INCLUDED_MESHMANAGER
|
|
#define INCLUDED_MESHMANAGER
|
|
|
|
#include "ps/CStr.h"
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
#include <boost/weak_ptr.hpp>
|
|
|
|
class CModelDef;
|
|
typedef shared_ptr<CModelDef> CModelDefPtr;
|
|
|
|
class CColladaManager;
|
|
|
|
class CMeshManager : boost::noncopyable
|
|
{
|
|
public:
|
|
CMeshManager(CColladaManager& colladaManager);
|
|
~CMeshManager();
|
|
|
|
CModelDefPtr GetMesh(const CStr& filename);
|
|
|
|
private:
|
|
typedef STL_HASH_MAP<CStr, boost::weak_ptr<CModelDef>, CStr_hash_compare> mesh_map;
|
|
mesh_map m_MeshMap;
|
|
CColladaManager& m_ColladaManager;
|
|
};
|
|
|
|
#endif
|