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

Comparing ray/src/rt/source.h (file contents):
Revision 2.12 by greg, Wed Dec 31 01:50:02 2003 UTC vs.
Revision 2.18 by greg, Sat Dec 6 01:08:53 2008 UTC

# Line 26 | Line 26 | extern "C" {
26   #define  SSPOT          010             /* source spotlight flag */
27   #define  SVIRTUAL       020             /* source virtual flag */
28   #define  SFLAT          040             /* source flat flag */
29 < #define  SCYL           0100            /* source cylindrical flag */
30 < #define  SFOLLOW        0200            /* source follow path flag */
29 > #define  SCIR           0100            /* source circular flag */
30 > #define  SCYL           0200            /* source cylindrical flag */
31 > #define  SFOLLOW        0400            /* source follow path flag */
32  
33   typedef struct {
34          FVECT  aim;             /* aim direction or center */
# Line 50 | Line 51 | typedef struct {
51   }  OBSCACHE;            /* obstructor cache */
52  
53   typedef struct {
53        int  sflags;            /* source flags */
54          FVECT  sloc;            /* direction or position of source */
55          FVECT  ss[3];           /* source dimension vectors, U, V, and W */
56          float  srad;            /* maximum source radius */
# Line 72 | Line 72 | typedef struct {
72   #ifdef  SHADCACHE
73          OBSCACHE  *obscache;    /* obstructor cache */
74   #endif
75 +        int  sflags;            /* source flags */
76   }  SRCREC;              /* light source */
77  
78   #define MAXSPART        64              /* maximum partitions per source */
# Line 84 | Line 85 | typedef struct {
85   #define snorm           ss[SW]          /* normal vector for flat source */
86  
87   typedef struct {
88 +        double  dom;                            /* solid angle of partition */
89          int  sn;                                /* source number */
90          short  np;                              /* number of partitions */
91          short  sp;                              /* this partition number */
90        double  dom;                            /* solid angle of partition */
92          unsigned char  spt[MAXSPART/2];         /* source partitioning */
93   }  SRCINDEX;            /* source index structure */
94  
# Line 148 | Line 149 | extern void    freesources(void);
149   extern int      srcray(RAY *sr, RAY *r, SRCINDEX *si);
150   extern void     srcvalue(RAY *r);
151   extern int      sourcehit(RAY *r);
152 < extern void     direct(RAY *r, void (*f)(), char *p);
152 > typedef void srcdirf_t(COLOR cv, void *np, FVECT ldir, double omega);
153 > extern void     direct(RAY *r, srcdirf_t *f, void *p);
154   extern void     srcscatter(RAY *r);
155   extern int      m_light(OBJREC *m, RAY *r);
156 < extern void     srcblocker(RAY *r);
156 >                                        /* defined in srcobstr.c */
157 > extern void     initobscache(int sn);
158 > extern int      srcblocker(RAY *r);
159   extern int      srcblocked(RAY *r);
160   extern void     freeobscache(SRCREC *s);
161 + extern void     markclip(OBJREC *m);
162                                          /* defined in srcsamp.c */
163   extern double   nextssamp(RAY *r, SRCINDEX *si);
164   extern int      skipparts(int ct[3], int sz[3], int pp[2], unsigned char *pt);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines