![]() |
Kiwano Engine v1.3.x
|
位图缓存 更多...
#include <BitmapCache.h>
Public 成员函数 | |
RefPtr< Bitmap > | Preload (StringView file_path) |
预加载本地图片 | |
RefPtr< Bitmap > | Preload (const Resource &res) |
预加载图片资源 | |
RefPtr< GifImage > | PreloadGif (StringView file_path) |
预加载本地GIF图片 | |
RefPtr< GifImage > | PreloadGif (const Resource &res) |
预加载GIF图片资源 | |
void | AddBitmap (size_t key, RefPtr< Bitmap > Bitmap) |
添加位图缓存 | |
void | AddGifImage (size_t key, RefPtr< GifImage > gif) |
添加GIF图像缓存 | |
RefPtr< Bitmap > | GetBitmap (size_t key) const |
获取位图缓存 | |
RefPtr< GifImage > | GetGifImage (size_t key) const |
获取GIF图像缓存 | |
void | RemoveBitmap (size_t key) |
移除位图缓存 | |
void | RemoveGifImage (size_t key) |
移除GIF图像缓存 | |
void | Clear () |
清空缓存 | |
位图缓存