Mir
|
#include <recently_used_cache.h>
Public Member Functions | |
std::shared_ptr< Texture > | load (graphics::Renderable const &renderable) override |
Loads texture from the renderable. More... | |
void | invalidate () override |
Mark all entries in the cache as out-of-date to ensure fresh textures are loaded next time. More... | |
void | drop_unused () override |
Free textures that were not used (loaded) since the last drop/invalidate. More... | |
![]() | |
virtual | ~TextureCache ()=default |
Additional Inherited Members | |
![]() | |
TextureCache ()=default | |
|
overridevirtual |
Free textures that were not used (loaded) since the last drop/invalidate.
Must be called with a current GL context.
Implements mir::gl::TextureCache.
|
overridevirtual |
Mark all entries in the cache as out-of-date to ensure fresh textures are loaded next time.
This function must be implemented in a way that does not require a GL context, as it will typically be called without one.
Implements mir::gl::TextureCache.
|
overridevirtual |
Loads texture from the renderable.
Must be called with a current GL context.
[in] | renderable | The Renderable that needs to be used as a texture |
Implements mir::gl::TextureCache.
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016