Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include <TerrainTextureManager.h>
Public Types | |
using | TerrainGroupMap = std::map< CStr, CTerrainGroup * > |
using | TerrainAlphaMap = std::map< VfsPath, TerrainAlpha > |
Public Member Functions | |
CTerrainTextureManager (Renderer::Backend::IDevice *device) | |
~CTerrainTextureManager () | |
int | LoadTerrainTextures () |
void | UnloadTerrainTextures () |
CTerrainTextureEntry * | FindTexture (const CStr &tag) const |
CTerrainTextureEntry * | AddTexture (const CTerrainPropertiesPtr &props, const VfsPath &path) |
void | DeleteTexture (CTerrainTextureEntry *entry) |
CTerrainGroup * | FindGroup (const CStr &name) |
const TerrainGroupMap & | GetGroups () const |
CTerrainTextureManager::TerrainAlphaMap::iterator | LoadAlphaMap (const VfsPath &alphaMapType) |
void | UploadResourcesIfNeeded (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
Public Member Functions inherited from Singleton< CTerrainTextureManager > | |
Singleton () | |
~Singleton () | |
Private Attributes | |
Renderer::Backend::IDevice * | m_Device = nullptr |
std::vector< CTerrainTextureEntry * > | m_TextureEntries |
TerrainGroupMap | m_TerrainGroups |
TerrainAlphaMap | m_TerrainAlphas |
size_t | m_LastGroupIndex = 0 |
std::vector< CTerrainTextureManager::TerrainAlphaMap::iterator > | m_AlphaMapsToUpload |
Friends | |
class | CTerrainTextureEntry |
Additional Inherited Members | |
Static Public Member Functions inherited from Singleton< CTerrainTextureManager > | |
static CTerrainTextureManager & | GetSingleton () |
static CTerrainTextureManager * | GetSingletonPtr () |
static bool | IsInitialised () |
using CTerrainTextureManager::TerrainAlphaMap = std::map<VfsPath, TerrainAlpha> |
using CTerrainTextureManager::TerrainGroupMap = std::map<CStr, CTerrainGroup*> |
CTerrainTextureManager::CTerrainTextureManager | ( | Renderer::Backend::IDevice * | device | ) |
CTerrainTextureManager::~CTerrainTextureManager | ( | ) |
CTerrainTextureEntry * CTerrainTextureManager::AddTexture | ( | const CTerrainPropertiesPtr & | props, |
const VfsPath & | path | ||
) |
void CTerrainTextureManager::DeleteTexture | ( | CTerrainTextureEntry * | entry | ) |
CTerrainGroup * CTerrainTextureManager::FindGroup | ( | const CStr & | name | ) |
CTerrainTextureEntry * CTerrainTextureManager::FindTexture | ( | const CStr & | tag | ) | const |
|
inline |
CTerrainTextureManager::TerrainAlphaMap::iterator CTerrainTextureManager::LoadAlphaMap | ( | const VfsPath & | alphaMapType | ) |
int CTerrainTextureManager::LoadTerrainTextures | ( | ) |
void CTerrainTextureManager::UnloadTerrainTextures | ( | ) |
void CTerrainTextureManager::UploadResourcesIfNeeded | ( | Renderer::Backend::IDeviceCommandContext * | deviceCommandContext | ) |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |