#include <PatchCache.h>
Collaboration diagram for PatchCache:

Public Member Functions | |
| PatchCache (PatchRandomAccessEnumerator *patchEnumerator, float ffTreshold, long maxCacheSize) | |
| ~PatchCache () | |
| Color | totalRadiosity (int destPatch) |
| |
| long int | cacheRawSize () const |
| Return current patch cache size. | |
Classes | |
| class | TQueueItem |
Now using priority queue to optimal usage of given memory.
Definition at line 22 of file PatchCache.h.
| PatchCache::PatchCache | ( | PatchRandomAccessEnumerator * | patchEnumerator, | |
| float | ffTreshold, | |||
| long | maxCacheSize | |||
| ) |
| patchEnumerator | Shared instance of PatchRandomAccessEnumerator. | |
| ffTreshold | Pair of patches with smaller form factor than formFactorTreshold will be ignored. | |
| maxCacheSize | Maximum size of patch cache (in bytes). |
| PatchCache::~PatchCache | ( | ) |
| Color PatchCache::totalRadiosity | ( | int | destPatch | ) |
This computation respectes form factor for each patch.
| destPatch | Destination patch to compute radiosity for. |
| long int PatchCache::cacheRawSize | ( | ) | const |
Return current patch cache size.
1.5.2