ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/ambient.h
(Generate patch)

Comparing ray/src/rt/ambient.h (file contents):
Revision 2.8 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.11 by greg, Wed Feb 23 18:18:21 2005 UTC

# Line 4 | Line 4
4   *
5   * Include after ray.h
6   */
7 + #ifndef _RAD_AMBIENT_H_
8 + #define _RAD_AMBIENT_H_
9 + #ifdef __cplusplus
10 + extern "C" {
11 + #endif
12  
8 #include "copyright.h"
9
13   /*
14   * Since we've defined our vectors as float below to save space,
15   * watch out for changes in the definitions of VCOPY() and DOT()
# Line 46 | Line 49 | typedef struct {
49   extern double  maxarad;         /* maximum ambient radius */
50   extern double  minarad;         /* minimum ambient radius */
51  
52 + #ifndef AVGREFL
53   #define  AVGREFL        0.5     /* assumed average reflectance */
54 + #endif
55  
56   #define  AMBVALSIZ      75      /* number of bytes in portable AMBVAL struct */
57   #define  AMBMAGIC       557     /* magic number for ambient value files */
58   #define  AMBFMT         "Radiance_ambval"       /* format id string */
59  
55 #ifdef NOPROTO
56
57 extern int      divsample();
58 extern double   doambient();
59 extern void     inithemi();
60 extern void     comperrs();
61 extern void     posgradient();
62 extern void     dirgradient();
63 extern void     setambres();
64 extern void     setambacc();
65 extern void     setambient();
66 extern void     ambdone();
67 extern void     ambnotify();
68 extern void     ambient();
69 extern double   sumambient();
70 extern double   makeambient();
71 extern void     extambient();
72 extern int      ambsync();
73 extern void     putambmagic();
74 extern int      hasambmagic();
75 extern int      writambval();
76 extern int      ambvalOK();
77 extern int      readambval();
78 extern void     lookamb();
79 extern void     writamb();
80
81 #else
60                                          /* defined in ambcomp.c */
61   extern int      divsample(AMBSAMP *dp, AMBHEMI *h, RAY *r);
62   extern double   doambient(COLOR acol, RAY *r, double wt, FVECT pg, FVECT dg);
# Line 108 | Line 86 | extern int     readambval(AMBVAL *av, FILE *fp);
86   extern void     lookamb(FILE *fp);
87   extern void     writamb(FILE *fp);
88  
89 +
90 + #ifdef __cplusplus
91 + }
92   #endif
93 + #endif /* _RAD_AMBIENT_H_ */
94 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines