Public Member Functions | Private Attributes
tile_map::TextureCache Class Reference

#include <texture_cache.h>

List of all members.

Public Member Functions

void AddTexture (const TexturePtr &texture)
void Clear ()
TexturePtr GetTexture (size_t url_hash, const QString &url, bool &failed)
 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 65 of file texture_cache.cpp.


Member Function Documentation

Definition at line 154 of file texture_cache.cpp.

Definition at line 163 of file texture_cache.cpp.

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

Definition at line 72 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.

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 Aug 24 2017 02:46:24