11 #ifndef TIL_IMAGE_CACHE_H
12 #define TIL_IMAGE_CACHE_H
85 void setCacheLimit(
bool enable);
86 void setCacheSize(
unsigned size_in_kb);
91 static int64 getSystemMaxSize();
104 bool usedscaled =
false,
109 void clearImageCache(
bool force_all =
false);
121 static void setUpdateCallback(
void (*callback)(
void *,
126 void dumpCache(std::ostream &os);
132 {
return "COP Flipbook Cache";}
134 {
return getCurrentSize(); }
138 {
return getMaxSize()*1024; }
153 bool use_software_emul,
154 bool halffloatsupport,
162 void pruneAnyObsoleteImages();
165 void lockCache()
const;
166 void unlockCache()
const;
174 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
A map of string to various well defined value types.
virtual void utSetMaxSize(int64)
const char * utGetCacheName() const override
required - return the english name for this cache.
int64 getCurrentSize() const