HDK
|
Cached object implementation for RE_TextureCache. More...
#include <RE_CachedObject.h>
Public Member Functions | |
RE_CachedObject () | |
~RE_CachedObject () override | |
void | setInUse (bool inc) |
virtual bool | inUse () |
int | getUsage () const |
void | incRef () |
void | decRef () |
int | getRefCount () const |
void | setCached (bool cached, const char *mapname) |
bool | isCached () const |
const char * | getName () const |
bool | setRemovalCallback (bool(*relCB)(void *, void *), void *relObject) |
bool | clearRemovalCallback (void *relObject) |
int64 | getMemoryUsage (bool inclusive) const override |
Public Member Functions inherited from RE_CachedObjectBase | |
RE_CachedObjectBase () | |
virtual | ~RE_CachedObjectBase () |
void | setVersion (RE_CacheVersion v) |
RE_CacheVersion | getVersion () const |
void | setExtraData (RE_CachedExtraData *data) |
const RE_CachedExtraDataHandle & | getExtraData () const |
void | setCacheTag (RE_CacheTagHandle h) |
void | resetCacheTag () |
void | setInCache (bool c) |
bool | isInCache () const |
Additional Inherited Members | |
Public Attributes inherited from RE_CachedObjectBase | |
RE_CacheVersion | myVersion |
RE_CacheTagHandle | myCacheTagHandle |
bool | myCachedFlag |
RE_CachedExtraDataHandle | myExtraData |
Cached object implementation for RE_TextureCache.
Definition at line 252 of file RE_CachedObject.h.
RE_CachedObject::RE_CachedObject | ( | ) |
|
override |
bool RE_CachedObject::clearRemovalCallback | ( | void * | relObject | ) |
|
inline |
Definition at line 267 of file RE_CachedObject.h.
|
overridevirtual |
Returns the amount of main memory (NOT graphics memory!) owned by this RE_CachedObject.
Reimplemented from RE_CachedObjectBase.
Reimplemented in RE_OGLTexture.
|
inline |
Definition at line 273 of file RE_CachedObject.h.
|
inline |
Definition at line 268 of file RE_CachedObject.h.
|
inline |
Definition at line 261 of file RE_CachedObject.h.
|
inline |
Definition at line 266 of file RE_CachedObject.h.
|
inlinevirtual |
Definition at line 260 of file RE_CachedObject.h.
|
inline |
Definition at line 271 of file RE_CachedObject.h.
void RE_CachedObject::setCached | ( | bool | cached, |
const char * | mapname | ||
) |
|
inline |
Definition at line 314 of file RE_CachedObject.h.