Rhino C++ API
8.13
|
#include <RhRdkTextureCache.h>
Classes | |
class | Location |
Public Member Functions | |
ON_DEPRECATED | CRhRdkTextureCache (const ON_2iSize &size, DWORD dwCRC) |
CRhRdkTextureCache (const ON_2iSize &size, DWORD dwCRC, const wchar_t *wszTag) | |
virtual | ~CRhRdkTextureCache () |
virtual ON_DEPRECATED void | AddTexture (const CRhinoDib &dib) |
virtual_su ON_wString | AddTexture (const CRhinoDib &dib, Location locationsToAddTo) |
virtual_su ON_wString | Filename (Location locationFileIsExpected) const |
virtual ON_DEPRECATED ON_wString | Filename (void) const |
virtual_su bool | HasCachedTexture (Location locationsToCheck) const |
virtual ON_DEPRECATED bool | HasCachedTexture (void) const |
void | Lock () const |
void | Unlock () const |
Public Member Functions inherited from CRhRdkObject | |
CRhRdkObject () | |
virtual | ~CRhRdkObject () |
virtual void * | EVF (const wchar_t *wszFunc, void *pvData) |
void | operator delete (void *buf) |
void | operator delete[] (void *buf) |
void * | operator new (size_t size) |
void * | operator new[] (size_t size) |
Additional Inherited Members | |
Static Public Member Functions inherited from CRhRdkObject | |
static void | CheckMemory (void) |
static void | PopulateDebuggingInfo (void) |
This object gives access to RDK's texture cache. Textures are cached on disk using file names that are derived from a combination of the texture size and a CRC of the parameters that were used to render the texture.
ON_DEPRECATED CRhRdkTextureCache::CRhRdkTextureCache | ( | const ON_2iSize & | size, |
DWORD | dwCRC | ||
) |
Instantiate this object on the stack.
size | is the size of the texture in pixels. |
dwCRC | is a CRC of all parameters that were used to create the texture imagery. |
CRhRdkTextureCache::CRhRdkTextureCache | ( | const ON_2iSize & | size, |
DWORD | dwCRC, | ||
const wchar_t * | wszTag | ||
) |
|
virtual |
|
virtual |
Add a texture to the cache for this texture size and CRC. If the texture file already exists it will be overwritten.
virtual_su ON_wString CRhRdkTextureCache::AddTexture | ( | const CRhinoDib & | dib, |
Location | locationsToAddTo | ||
) |
virtual_su ON_wString CRhRdkTextureCache::Filename | ( | Location | locationFileIsExpected | ) | const |
|
virtual |
Get the full path to the texture file on disk.
virtual_su bool CRhRdkTextureCache::HasCachedTexture | ( | Location | locationsToCheck | ) | const |
|
virtual |
void CRhRdkTextureCache::Lock | ( | ) | const |
void CRhRdkTextureCache::Unlock | ( | ) | const |