de.matthiasmann.twl.renderer
Interface CacheContext

All Superinterfaces:
Resource
All Known Implementing Classes:
LWJGLCacheContext

public interface CacheContext
extends Resource

A cache context is used by the renderer to cache images and fonts. When reloading a theme a new CacheContext should be used to ensure that all images and fonts are reloaded. When switching between different themes the same CacheContext should be used to prevent reloading of already loaded images and fonts. When a cache context is destroyed then all loaded resources may become unavilable.


Method Summary
 boolean isValid()
          A cache context is valid until it's destroyed.
 
Methods inherited from interface de.matthiasmann.twl.renderer.Resource
destroy
 

Method Detail

isValid

boolean isValid()
A cache context is valid until it's destroyed.

Returns:
true if it is valid