#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, TexturePtr > | cache_ |
| ImageCachePtr | image_cache_ |
Definition at line 52 of file texture_cache.h.
| tile_map::TextureCache::TextureCache | ( | ImageCachePtr | image_cache, |
| size_t | size = 512 |
||
| ) | [explicit] |
Definition at line 66 of file texture_cache.cpp.
| 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.
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.