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.13 by greg, Fri Jul 1 18:06:53 1994 UTC vs.
Revision 1.15 by greg, Thu Sep 1 09:17:46 1994 UTC

# Line 84 | Line 84 | extern char    *mg_err[MG_NERRS];
84   * the mg_handle function rather than the mg_ehand routines directly.
85   * (The first argument to mg_handle is the entity #, or -1.)
86   * To free any data structures and clear the parser, use mg_clear.
87 < * If there is an error, mg_load, mg_open, mg_parse, and mg_rewind
88 < * will return an error from the list above.  In addition, mg_load
89 < * will report the error to stderr.  The mg_read routine returns 0
90 < * when the end of file has been reached.
87 > * If there is an error, mg_load, mg_open, mg_parse, mg_handle and
88 > * mg_rewind will return an error from the list above.  In addition,
89 > * mg_load will report the error to stderr.  The mg_read routine
90 > * returns 0 when the end of file has been reached.
91   */
92  
93   #define MG_MAXLINE      512             /* maximum input line length */
# Line 237 | Line 237 | typedef struct {
237                          11,8,3,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},\
238                          106770L, .167, .009 }
239  
240 < #define c_cval(c,l)     ((double)(c)->ssamp[((l)-C_MINWL)/C_CWLI] / (c)->sum)
240 > #define c_cval(c,l)     ((double)(c)->ssamp[((l)-C_MINWL)/C_CWLI] / (c)->ssum)
241  
242   typedef struct {
243          int     clock;          /* incremented each change -- resettable */
# Line 330 | Line 330 | extern MAT4  m4ident;
330  
331                                  /* regular transformation */
332   typedef struct {
333 <        MAT4  xfm;                              /* transform matrix */
334 <        FLOAT  sca;                             /* scalefactor */
333 >        MAT4    xfm;                            /* transform matrix */
334 >        FLOAT   sca;                            /* scalefactor */
335   }  XF;
336  
337   #define identxf(xp)             (void)(setident4((xp)->xfm),(xp)->sca=1.0)
# Line 351 | Line 351 | typedef struct xf_spec {
351          long    xid;                    /* unique transform id */
352          short   xav0;                   /* zeroeth argument in xf_argv array */
353          short   xac;                    /* transform argument count */
354 +        short   rev;                    /* boolean true if vertices reversed */
355          XF      xf;                     /* cumulative transformation */
356          struct xf_array *xarr;          /* transformation array pointer */
357          struct xf_spec  *prev;          /* previous transformation context */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines