1
0
forked from 0ad/0ad
0ad/source/graphics/MeshManager.h
Ykkrosh 5228800b73 # Fixed Linux build
Use noncopyable instead of boost::noncopyable. (But maybe this should be
changed to the NONCOPYABLE macro instead?)
Use boost::filesystem::wpath::file_string instead of
external_file_string, since the latter varies between std::string on
Linux and std::wstring on Windows.
Use wcstombs instead of wcstombs_s.
Use rtl_AllocateAligned instead of _mm_malloc.

This was SVN commit r6574.
2009-01-02 21:19:41 +00:00

29 lines
548 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 : 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