18 #ifndef INCLUDED_TERRAINTEXTUREMANAGER
19 #define INCLUDED_TERRAINTEXTUREMANAGER
23 #include <boost/shared_ptr.hpp>
32 #define g_TexMan CTerrainTextureManager::GetSingleton()
34 #define NUM_ALPHA_MAPS 14
TerrainAlphaMap m_TerrainAlphas
struct TerrainAlpha::@16 m_AlphaMapCoords[NUM_ALPHA_MAPS]
shared_ptr< CTerrainProperties > CTerrainPropertiesPtr
std::vector< CTerrainTextureEntry * > m_Terrains
const std::vector< CTerrainTextureEntry * > & GetTerrains() const
const TerrainGroupMap & GetGroups() const
std::vector< CTerrainTextureEntry * > m_TextureEntries
void RecurseDirectory(const CTerrainPropertiesPtr &props, const VfsPath &path)
void UnloadTerrainTextures()
CTerrainTextureEntry * FindTexture(const CStr &tag)
TerrainGroupMap m_TerrainGroups
CTerrainGroup * FindGroup(const CStr &name)
int LoadTerrainTextures()
i64 Handle
`handle' representing a reference to a resource (sound, texture, etc.)
std::map< VfsPath, TerrainAlpha > TerrainAlphaMap
void LoadTextures(const CTerrainPropertiesPtr &props, const VfsPath &path)
CTerrainPropertiesPtr GetPropertiesFromFile(const CTerrainPropertiesPtr &props, const VfsPath &pathname)
void AddTerrain(CTerrainTextureEntry *)
CTerrainTextureEntry * AddTexture(const CTerrainPropertiesPtr &props, const VfsPath &path)
void RemoveTerrain(CTerrainTextureEntry *)
std::map< CStr, CTerrainGroup * > TerrainGroupMap
void DeleteTexture(CTerrainTextureEntry *entry)
Handle m_hCompositeAlphaMap
CTerrainGroup(CStr name, size_t index)
~CTerrainTextureManager()