#include <RE_TextureMap.h>
|
virtual | ~RE_TextureMap () |
|
virtual int64 | getMemoryUsage (bool inclusive) const |
|
virtual const char * | className () const |
|
virtual RE_TextureDimension | getMapType ()=0 |
|
virtual RE_TextureMap * | clone () const =0 |
|
bool | setSource (const char *mapname, const char *relativeTo) |
|
bool | setSource (const char *mapname, const char *relativeTo, RE_Texture *texture, RE_CacheVersion version, bool(*releaseCB)(RE_Texture *, void *), void *releaseObject) |
|
void | setNamespace (const char *ns) |
|
void | setSourceModifyCallback (const char *opname, bool(*modifyCallback)(RE_TextureMap *map, TexCBPixelData &pixdata, void *user_data), void *user_data) |
|
void | clearStoredTexture () |
|
void | deleteTexRef (RE_Texture *tex) |
|
RE_TextureHolder | getTexture (RE_Render *r, bool deferred_load=false) |
| Access to the texture itself. This method may actually build it. More...
|
|
RE_TextureHolder | getCachedTexture (RE_Render *r) |
| Access to the texture itself, this method will only check the cache. More...
|
|
RE_Texture * | getUncachedTexture (RE_Render *r) |
| Return a texture that is not cached in the GL cache. You own it. More...
|
|
bool | hasTaggedTexture () const |
|
void | setVersion (RE_CacheVersion v) |
|
void | bumpVersion () |
|
RE_CacheVersion | getVersion () const |
|
virtual void | invalidateCached () |
|
const char * | getMapName () const |
|
const char * | getRelativePath () const |
|
void | reset () |
|
void | clear (const char *clear_name=nullptr) |
|
bool | isSourceValid () |
|
void | setValidSourceResolve (bool valid) |
|
bool | hasValidSourceResolve () const |
|
bool | isLoadPending () const |
|
void | getResolution (int &w, int &h, int &d) |
|
RE_GPUType | getFormatType () |
|
int | getFormatSize () |
|
float | getAspectRatio () |
|
float | getAspectRatioXZ () |
|
RE_TextureFilter & | filter () |
|
const RE_TextureFilter & | filter () const |
|
void | setColorSpace (PXL_ColorSpace space) |
|
PXL_ColorSpace | getColorSpace () const |
|
void | sizeTo (int w, int h, int d=1) |
|
void | scaleTo (fpreal w, fpreal h=-1.0f, fpreal d=-1.0f) |
|
void | maxSize (int w, int h, int d) |
|
void | maxMemSize (int mem_limit_mb) |
|
void | makePow2 (bool pow2) |
|
void | setCompression (RE_TextureCompress comp) |
|
void | setMipMap (bool mip) |
|
void | setTextureFormatOption (RE_TextureFormatExtra opt) |
|
void | setTextureComponent (int texcomp) |
|
void | fillRGBFromSingle (bool fill_rgb_mono) |
|
void | setOpaqueAlpha (bool opaque_alpha) |
|
bool | getOpaqueAlpha () const |
|
void | checkAlphaDetails (bool check) |
|
IMG_FileAlphaInfo | getAlphaDetails () const |
|
void | allowPreload (bool preload) |
|
bool | allowsPreload () const |
|
virtual int | getSourceOpID () const |
|
|
| RE_TextureMap () |
|
virtual void | buildSourceName (UT_String &cachedname, const char *map, const char *rel) |
|
virtual void | buildTextureName (UT_String &cachedname, const char *map, const char *rel) |
|
re_AutoTextureSource | getTextureSource (const char *map, const char *relto, void **tex_data, bool deferred_load=false, bool preload_only=false) |
|
void | getDesiredResolution (RE_GPUType type, int vsize, int *w, int *h, int *d) |
|
virtual bool | buildTexture (RE_Render *r, RE_Texture *tex, void *data)=0 |
|
virtual void | cachedTextureFound (RE_Texture *tex) |
|
virtual bool | getNodeSource (const char *map, const char *rel, void **mapptr, RE_TextureDimension &textype, RE_GPUType &datatype, int &vectorsize, int &w, int &h, int &d) |
|
virtual bool | getFileSource (const char *map, void **mapptr, RE_TextureDimension &textype, RE_GPUType &datatype, int &vectorsize, int &w, int &h, int &d, bool preload_only) |
|
void | setPendingLoad (bool pend) |
|
void * | callModifyCallback (RE_Texture *tex, void *data) |
|
bool | isNodeSource () |
|
RE_TextureCompress | getCompression () const |
|
bool | getMipMap () const |
|
RE_Texture * | getTextureStub (bool preload) |
|
void | copy (const RE_TextureMap *src) |
|
RE_TextureFormatExtra | getTextureFormatOption () const |
|
void | setupGammaCorrect (IMG_FileParms &parms, const char *filename, RE_GPUType datatype) |
|
RE_TextureHolder | fetchTexture (RE_Render *r, bool build_if_missing, bool preload_only) |
|
Definition at line 98 of file RE_TextureMap.h.
virtual RE_TextureMap::~RE_TextureMap |
( |
| ) |
|
|
virtual |
RE_TextureMap::RE_TextureMap |
( |
| ) |
|
|
protected |
void RE_TextureMap::allowPreload |
( |
bool |
preload | ) |
|
|
inline |
bool RE_TextureMap::allowsPreload |
( |
| ) |
const |
|
inline |
static void RE_TextureMap::backgroundTextureLoadThreads |
( |
int |
n | ) |
|
|
static |
virtual void RE_TextureMap::buildSourceName |
( |
UT_String & |
cachedname, |
|
|
const char * |
map, |
|
|
const char * |
rel |
|
) |
| |
|
protectedvirtual |
virtual void RE_TextureMap::buildTextureName |
( |
UT_String & |
cachedname, |
|
|
const char * |
map, |
|
|
const char * |
rel |
|
) |
| |
|
protectedvirtual |
void RE_TextureMap::bumpVersion |
( |
| ) |
|
void RE_TextureMap::checkAlphaDetails |
( |
bool |
check | ) |
|
|
inline |
const char * RE_TextureMap::className |
( |
| ) |
const |
|
inlinevirtual |
void RE_TextureMap::clear |
( |
const char * |
clear_name = nullptr | ) |
|
void RE_TextureMap::clearStoredTexture |
( |
| ) |
|
static void RE_TextureMap::clearTextureCache |
( |
bool |
full_clear | ) |
|
|
static |
static void RE_TextureMap::debugDumpCache |
( |
| ) |
|
|
static |
void RE_TextureMap::fillRGBFromSingle |
( |
bool |
fill_rgb_mono | ) |
|
|
inline |
static int64 RE_TextureMap::get2DTextureFP16Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::get2DTextureFP32Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::get2DTextureUsage |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::get3DTextureFP16Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::get3DTextureFP32Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::get3DTextureUsage |
( |
| ) |
|
|
static |
float RE_TextureMap::getAspectRatio |
( |
| ) |
|
float RE_TextureMap::getAspectRatioXZ |
( |
| ) |
|
Access to the texture itself, this method will only check the cache.
int RE_TextureMap::getFormatSize |
( |
| ) |
|
const char* RE_TextureMap::getMapName |
( |
| ) |
const |
|
inline |
virtual int64 RE_TextureMap::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
virtual |
bool RE_TextureMap::getMipMap |
( |
| ) |
const |
|
inlineprotected |
static int64 RE_TextureMap::getMipMapUsage |
( |
| ) |
|
|
static |
static int RE_TextureMap::getNumUsedTextureMaps |
( |
| ) |
|
|
static |
bool RE_TextureMap::getOpaqueAlpha |
( |
| ) |
const |
|
inline |
static int64 RE_TextureMap::getOrig2DTextureFP16Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::getOrig2DTextureFP32Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::getOrig3DTextureFP16Size |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::getOrig3DTextureFP32Size |
( |
| ) |
|
|
static |
const char* RE_TextureMap::getRelativePath |
( |
| ) |
const |
|
inline |
virtual int RE_TextureMap::getSourceOpID |
( |
| ) |
const |
|
inlinevirtual |
Access to the texture itself. This method may actually build it.
static int RE_TextureMap::getTextureCacheSerial |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::getTextureCacheSize |
( |
| ) |
|
|
static |
static int64 RE_TextureMap::getTextureCacheUsage |
( |
| ) |
|
|
static |
re_AutoTextureSource RE_TextureMap::getTextureSource |
( |
const char * |
map, |
|
|
const char * |
relto, |
|
|
void ** |
tex_data, |
|
|
bool |
deferred_load = false , |
|
|
bool |
preload_only = false |
|
) |
| |
|
protected |
RE_Texture* RE_TextureMap::getTextureStub |
( |
bool |
preload | ) |
|
|
protected |
Return a texture that is not cached in the GL cache. You own it.
static int64 RE_TextureMap::getUsedTextureMemory |
( |
| ) |
|
|
static |
bool RE_TextureMap::hasTaggedTexture |
( |
| ) |
const |
|
inline |
bool RE_TextureMap::hasValidSourceResolve |
( |
| ) |
const |
|
inline |
virtual void RE_TextureMap::invalidateCached |
( |
| ) |
|
|
virtual |
bool RE_TextureMap::isLoadPending |
( |
| ) |
const |
|
inline |
Return trues if a load request has been queued for this texture, but it isn't yet loaded.
Definition at line 216 of file RE_TextureMap.h.
bool RE_TextureMap::isNodeSource |
( |
| ) |
|
|
protected |
bool RE_TextureMap::isSourceValid |
( |
| ) |
|
void RE_TextureMap::makePow2 |
( |
bool |
pow2 | ) |
|
void RE_TextureMap::maxMemSize |
( |
int |
mem_limit_mb | ) |
|
static void RE_TextureMap::pruneTextureCache |
( |
| ) |
|
|
static |
static bool RE_TextureMap::recordingTextureUsage |
( |
| ) |
|
|
static |
static void RE_TextureMap::recordTextureMapUsage |
( |
bool |
enable | ) |
|
|
static |
void RE_TextureMap::reset |
( |
| ) |
|
void RE_TextureMap::setMipMap |
( |
bool |
mip | ) |
|
void RE_TextureMap::setNamespace |
( |
const char * |
ns | ) |
|
|
inline |
void RE_TextureMap::setOpaqueAlpha |
( |
bool |
opaque_alpha | ) |
|
|
inline |
void RE_TextureMap::setPendingLoad |
( |
bool |
pend | ) |
|
|
inlineprotected |
bool RE_TextureMap::setSource |
( |
const char * |
mapname, |
|
|
const char * |
relativeTo |
|
) |
| |
static void RE_TextureMap::setTextureCacheSize |
( |
int64 |
size_in_mb | ) |
|
|
static |
void RE_TextureMap::setTextureComponent |
( |
int |
texcomp | ) |
|
|
inline |
void RE_TextureMap::setValidSourceResolve |
( |
bool |
valid | ) |
|
bool RE_TextureMap::myAlphaDetails |
|
protected |
bool RE_TextureMap::myMakePow2 |
|
protected |
int RE_TextureMap::myMaxMemMB |
|
protected |
int RE_TextureMap::myMaxRes[3] |
|
protected |
int RE_TextureMap::myMipMap |
|
protected |
int RE_TextureMap::myRes[3] |
|
protected |
fpreal RE_TextureMap::myScale[3] |
|
protected |
The documentation for this class was generated from the following file: