11 #ifndef TIL_IMAGE_CACHE_H
12 #define TIL_IMAGE_CACHE_H
78 void setCacheLimit(
bool enable);
79 void setCacheSize(
unsigned size_in_kb);
84 static int64 getSystemMaxSize();
96 bool usedscaled =
false,
101 void clearImageCache(
bool force_all =
false);
113 static void setUpdateCallback(
void (*callback)(
void *,
118 void dumpCache(std::ostream &os);
124 {
return "COP Flipbook Cache";}
126 {
return getCurrentSize(); }
130 {
return getMaxSize()*1024; }
145 bool use_software_emul,
146 bool halffloatsupport);
153 void pruneAnyObsoleteImages();
156 void lockCache(
bool lock =
true);
164 unsigned myCacheLimit : 1,
void setResolution(exint resx, exint resy)
int64 utGetCurrentSize() const override
required - return the current cache size, in bytes
GLenum GLenum GLsizei void * image
void setCrop(float u1, float v1, float u2, float v2)
GLfloat GLfloat GLfloat v2
int64 utGetMaxSize() const override
virtual int64 utReduceCacheSizeBy(int64 amount)=0
TIL_DataFormat myDataFormat
#define TILE_MAX_DATA_FORMAT
TIL_API TIL_ImageCache * TILgetCache()
GLsizei GLsizei GLchar * source
Common base class for various caches.
bool utHasMaxSize() const override
optional - override if the cache has a well defined maximum size
virtual void utSetMaxSize(int64)
const char * utGetCacheName() const override
required - return the english name for this cache.
int64 getCurrentSize() const