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

Comparing ray/src/cv/mgflib/parser.h (file contents):
Revision 1.30 by greg, Tue Mar 18 11:05:40 1997 UTC vs.
Revision 1.31 by gregl, Fri Oct 10 16:45:50 1997 UTC

# Line 173 | Line 173 | extern int isfltd();                   /* same with delimiter set */
173   extern int isname();                    /* non-zero if legal identifier name */
174   extern int badarg();                    /* check argument format */
175   extern int e_include();                 /* expand include entity */
176 + extern int e_pipe();                    /* expand piped command */
177   extern int e_sph();                     /* expand sphere as other entities */
178   extern int e_torus();                   /* expand torus as other entities */
179   extern int e_cyl();                     /* expand cylinder as other entities */
# Line 189 | Line 190 | extern int isfltd(char *, char *);     /* same with delimi
190   extern int isname(char *);              /* non-zero if legal identifier name */
191   extern int badarg(int, char **, char *);/* check argument format */
192   extern int e_include(int, char **);     /* expand include entity */
193 + extern int e_pipe(int, char **);        /* expand piped command */
194   extern int e_sph(int, char **);         /* expand sphere as other entities */
195   extern int e_torus(int, char **);       /* expand torus as other entities */
196   extern int e_cyl(int, char **);         /* expand cylinder as other entities */
# Line 249 | Line 251 | extern void    fcross(FVECT,FVECT,FVECT);/* cross product
251   #define C_CSEFF         020             /* flag if efficacy set */
252  
253   typedef struct {
254 <        int     clock;                  /* incremented each change */
255 <        short   flags;                  /* what's been set */
256 <        short   ssamp[C_CNSS];          /* spectral samples, min wl to max */
257 <        long    ssum;                   /* straight sum of spectral values */
258 <        float   cx, cy;                 /* xy chromaticity value */
259 <        float   eff;                    /* efficacy (lumens/watt) */
254 >        int     clock;          /* incremented each change */
255 >        char    *client_data;   /* pointer to private client-owned data */
256 >        short   flags;          /* what's been set */
257 >        short   ssamp[C_CNSS];  /* spectral samples, min wl to max */
258 >        long    ssum;           /* straight sum of spectral values */
259 >        float   cx, cy;         /* xy chromaticity value */
260 >        float   eff;            /* efficacy (lumens/watt) */
261   } C_COLOR;
262  
263 < #define C_DEFCOLOR      { 1, C_CDXY|C_CSXY|C_CSSPEC|C_CSEFF,\
263 > #define C_DEFCOLOR      { 1, NULL, C_CDXY|C_CSXY|C_CSSPEC|C_CSEFF,\
264                          {C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,\
265                          C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,\
266                          C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,C_CMAXV,\
# Line 273 | Line 276 | typedef struct {
276  
277   typedef struct {
278          int     clock;          /* incremented each change -- resettable */
279 +        char    *client_data;   /* pointer to private client-owned data */
280          int     sided;          /* 1 if surface is 1-sided, 0 for 2-sided */
281          float   nr, ni;         /* index of refraction, real and imaginary */
282          float   rd;             /* diffuse reflectance */
# Line 291 | Line 295 | typedef struct {
295  
296   typedef struct {
297          int     clock;          /* incremented each change -- resettable */
298 +        char    *client_data;   /* pointer to private client-owned data */
299          FVECT   p, n;           /* point and normal */
300   } C_VERTEX;             /* vertex context */
301  
302 < #define C_DEFMATERIAL   {1,0,1.,0.,0.,C_DEFCOLOR,0.,C_DEFCOLOR,0.,C_DEFCOLOR,\
303 <                                        0.,C_DEFCOLOR,0.,0.,C_DEFCOLOR,0.}
304 < #define C_DEFVERTEX     {1,{0.,0.,0.},{0.,0.,0.}}
302 > #define C_DEFMATERIAL   {1,NULL,0,1.,0.,0.,C_DEFCOLOR,0.,C_DEFCOLOR,0.,\
303 >                                C_DEFCOLOR,0.,C_DEFCOLOR,0.,0.,C_DEFCOLOR,0.}
304 > #define C_DEFVERTEX     {1,NULL,{0.,0.,0.},{0.,0.,0.}}
305  
306   extern C_COLOR          *c_ccolor;      /* the current color */
307   extern char             *c_ccname;      /* current color name */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines