|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.util.ResourceCache
public abstract class ResourceCache
Base class for the resource caches.
| Nested Class Summary | |
|---|---|
protected static class |
ResourceCache.CachedResource<T>
Contains a cached resource. |
protected class |
ResourceCache.Subcache<K,V>
A cache for a single type of resource. |
| Field Summary | |
|---|---|
protected boolean |
_checkTimestamps
Whether or not to check resource file timestamps. |
protected GlContext |
_ctx
The renderer context. |
| Constructor Summary | |
|---|---|
ResourceCache(GlContext ctx,
boolean checkTimestamps)
Creates a new resource cache. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GlContext _ctx
protected boolean _checkTimestamps
| Constructor Detail |
|---|
public ResourceCache(GlContext ctx,
boolean checkTimestamps)
checkTimestamps - if true, check the last-modified timestamp of each resource file
when we retrieve it from the cache, reloading the resource if the file has been modified
externally.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||