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

Public Member Functions | |
| PatchCacheLine (PatchRandomAccessEnumerator *patchEnumerator, float ffTreshold) | |
| void | addPatch (int srcPatch, float formFactor) |
| Add patch to cache-line (and save form factor of pair of patches). | |
| Color | totalRadiosity () |
| |
| size_t | itemCount () |
| Return total count of patch saved in cache-line. | |
Static Public Member Functions | |
| static size_t | itemSize () |
| Return raw allocation size of one cache item. | |
The one and only communication way between RadiosityRenderer and FormFactorEngine classes.
Definition at line 21 of file PatchCacheLine.h.
| PatchCacheLine::PatchCacheLine | ( | PatchRandomAccessEnumerator * | patchEnumerator, | |
| float | ffTreshold | |||
| ) |
| patchEnumerator | Shared instance of PatchRandomAccessEnumerator. | |
| ffTreshold | Pair of patches with smaller form factor than formFactorTreshold will be ignored. |
| void PatchCacheLine::addPatch | ( | int | srcPatch, | |
| float | formFactor | |||
| ) |
Add patch to cache-line (and save form factor of pair of patches).
| srcPatch | Source patch from a pair of patches. | |
| formFactor | Form factor of a pair of patches. |
| Color PatchCacheLine::totalRadiosity | ( | ) |
This computation respectes cached form factor for each patch.
| size_t PatchCacheLine::itemCount | ( | ) |
Return total count of patch saved in cache-line.
| static size_t PatchCacheLine::itemSize | ( | ) | [inline, static] |
1.5.2