78 void load_texture(ID3D11Device* device,
const tstring& filename, ID3D11ShaderResourceView** srv =
nullptr);
A texture cache.
Definition: texture_cache.h:29
void add_texture(ID3D11Device *device, const tstring &filename)
Add a new texture to the cache.
Definition: texture_cache.cpp:258
void destroy()
Destroy the texture_cache and free all resources.
Definition: texture_cache.cpp:280
static texture_cache & i()
The static instance of the texture_cache.
Definition: texture_cache.cpp:252
Wrapper for a Direct3D texture object.
Definition: texture.h:25