OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LodTextureCache Class Reference

#include <LodTextureCache.h>

Public Member Functions

 LodTextureCache ()
 
 ~LodTextureCache ()
 
void open (Blob blob)
 
void reserveLoadedTextures ()
 
void releaseUnreserved ()
 
Texture_MM7loadTexture (std::string_view pContainer, bool useDummyOnError=true)
 
Blob LoadCompressedTexture (std::string_view pContainer)
 

Private Member Functions

bool LoadTextureFromLOD (Texture_MM7 *pOutTex, std::string_view pContainer)
 

Private Attributes

LodReader _reader
 
int _reservedCount = 0
 
std::unordered_map< std::string, Texture_MM7_textureByName
 
std::vector< std::string > _texturesInOrder
 

Constructor & Destructor Documentation

◆ LodTextureCache()

LodTextureCache::LodTextureCache ( )
default

◆ ~LodTextureCache()

LodTextureCache::~LodTextureCache ( )

Member Function Documentation

◆ LoadCompressedTexture()

Blob LodTextureCache::LoadCompressedTexture ( std::string_view  pContainer)

◆ loadTexture()

Texture_MM7 * LodTextureCache::loadTexture ( std::string_view  pContainer,
bool  useDummyOnError = true 
)

◆ LoadTextureFromLOD()

bool LodTextureCache::LoadTextureFromLOD ( Texture_MM7 pOutTex,
std::string_view  pContainer 
)
private

◆ open()

void LodTextureCache::open ( Blob  blob)

◆ releaseUnreserved()

void LodTextureCache::releaseUnreserved ( )

◆ reserveLoadedTextures()

void LodTextureCache::reserveLoadedTextures ( )

Member Data Documentation

◆ _reader

LodReader LodTextureCache::_reader
private

◆ _reservedCount

int LodTextureCache::_reservedCount = 0
private

◆ _textureByName

std::unordered_map<std::string, Texture_MM7> LodTextureCache::_textureByName
private

◆ _texturesInOrder

std::vector<std::string> LodTextureCache::_texturesInOrder
private

The documentation for this class was generated from the following files: