Kiwano Engine v1.3.x
|
纹理缓存 更多...
#include <TextureCache.h>
Public 成员函数 | |
RefPtr< Texture > | Preload (StringView file_path) |
预加载本地图片 | |
RefPtr< Texture > | Preload (const Resource &res) |
预加载图片资源 | |
RefPtr< GifImage > | PreloadGif (StringView file_path) |
预加载本地GIF图片 | |
RefPtr< GifImage > | PreloadGif (const Resource &res) |
预加载GIF图片资源 | |
void | AddTexture (size_t key, RefPtr< Texture > texture) |
添加纹理缓存 | |
void | AddGifImage (size_t key, RefPtr< GifImage > gif) |
添加GIF图像缓存 | |
RefPtr< Texture > | GetTexture (size_t key) const |
获取纹理缓存 | |
RefPtr< GifImage > | GetGifImage (size_t key) const |
获取GIF图像缓存 | |
void | RemoveTexture (size_t key) |
移除纹理缓存 | |
void | RemoveGifImage (size_t key) |
移除GIF图像缓存 | |
void | Clear () |
清空缓存 | |
纹理缓存