1
0
forked from 0ad/0ad
0ad/source/graphics/MeshManager.h
janwas e2eb5b2610 part4: adapt codebase to changes in lib/
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.
2007-12-20 20:21:45 +00:00

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