Public Member Functions | Private Attributes | List of all members
tile_map::TextureCache Class Reference

#include <texture_cache.h>

Public Member Functions

void AddTexture (const TexturePtr &texture)
 
void Clear ()
 
TexturePtr GetTexture (size_t url_hash, const QString &url, bool &failed, int priority)
 
 TextureCache (ImageCachePtr image_cache, size_t size=512)
 

Private Attributes

QCache< size_t, TexturePtrcache_
 
ImageCachePtr image_cache_
 

Detailed Description

Definition at line 52 of file texture_cache.h.

Constructor & Destructor Documentation

tile_map::TextureCache::TextureCache ( ImageCachePtr  image_cache,
size_t  size = 512 
)
explicit

Definition at line 66 of file texture_cache.cpp.

Member Function Documentation

void tile_map::TextureCache::AddTexture ( const TexturePtr texture)

Definition at line 155 of file texture_cache.cpp.

void tile_map::TextureCache::Clear ( )

Definition at line 164 of file texture_cache.cpp.

TexturePtr tile_map::TextureCache::GetTexture ( size_t  url_hash,
const QString &  url,
bool &  failed,
int  priority 
)

Definition at line 73 of file texture_cache.cpp.

Member Data Documentation

QCache<size_t, TexturePtr> tile_map::TextureCache::cache_
private

Definition at line 63 of file texture_cache.h.

ImageCachePtr tile_map::TextureCache::image_cache_
private

Definition at line 65 of file texture_cache.h.


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


tile_map
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 19:25:35