28 |
|
#include "pmapparm.h" |
29 |
|
#include "pmapdata.h" |
30 |
|
|
31 |
+ |
#ifdef __cplusplus |
32 |
+ |
extern "C" { |
33 |
+ |
#endif |
34 |
|
|
35 |
|
#ifndef min |
36 |
|
#define min(a, b) ((a) < (b) ? (a) : (b)) |
51 |
|
#define causticPhotonMapping (causticPmap != NULL) |
52 |
|
#define directPhotonMapping (directPmap != NULL) |
53 |
|
#define volumePhotonMapping (volumePmap != NULL) |
54 |
< |
#define contribPhotonMapping (contribPmap && contribPmap -> srcContrib) |
55 |
< |
|
56 |
< |
|
54 |
> |
/* #define contribPhotonMapping (contribPmap && contribPmap -> srcContrib) |
55 |
> |
*/ |
56 |
> |
#define contribPhotonMapping (contribPmap) |
57 |
> |
|
58 |
|
|
59 |
|
extern void (*pmapLookup [])(PhotonMap*, RAY*, COLOR); |
60 |
|
/* Photon map lookup functions per type */ |
90 |
|
|
91 |
|
void colorNorm (COLOR); |
92 |
|
/* Normalise colour channels to average of 1 */ |
93 |
+ |
|
94 |
+ |
#ifdef __cplusplus |
95 |
+ |
} |
96 |
+ |
#endif |
97 |
|
|
98 |
|
#endif |