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

#include <LodSpriteCache.h>

Public Member Functions

 LodSpriteCache ()
 
 ~LodSpriteCache ()
 
bool open (Blob blob)
 
void reserveLoadedSprites ()
 
void releaseUnreserved ()
 
SpriteloadSprite (std::string_view pContainerName)
 

Private Member Functions

bool LoadSpriteFromFile (LODSprite *pSpriteHeader, std::string_view pContainer)
 

Private Attributes

LodReader _reader
 
int _reservedCount = 0
 
std::unordered_map< std::string, Sprite_spriteByName
 
std::vector< std::string > _spritesInOrder
 

Constructor & Destructor Documentation

◆ LodSpriteCache()

LodSpriteCache::LodSpriteCache ( )
default

◆ ~LodSpriteCache()

LodSpriteCache::~LodSpriteCache ( )

Member Function Documentation

◆ loadSprite()

Sprite * LodSpriteCache::loadSprite ( std::string_view  pContainerName)

◆ LoadSpriteFromFile()

bool LodSpriteCache::LoadSpriteFromFile ( LODSprite pSpriteHeader,
std::string_view  pContainer 
)
private

◆ open()

bool LodSpriteCache::open ( Blob  blob)

◆ releaseUnreserved()

void LodSpriteCache::releaseUnreserved ( )

◆ reserveLoadedSprites()

void LodSpriteCache::reserveLoadedSprites ( )

Member Data Documentation

◆ _reader

LodReader LodSpriteCache::_reader
private

◆ _reservedCount

int LodSpriteCache::_reservedCount = 0
private

◆ _spriteByName

std::unordered_map<std::string, Sprite> LodSpriteCache::_spriteByName
private

◆ _spritesInOrder

std::vector<std::string> LodSpriteCache::_spritesInOrder
private

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