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.34 by schorsch, Sat Jun 7 01:11:17 2003 UTC vs.
Revision 1.37 by schorsch, Sat Nov 15 17:54:06 2003 UTC

# Line 170 | Line 170 | extern int e_faceh(int, char **);      /* expand face w/ ho
170   */
171  
172   #ifdef  SMLFLT
173 < #define  FLOAT          float
173 > #define  RREAL          float
174   #define  FTINY          (1e-3)
175   #else
176 < #define  FLOAT          double
176 > #define  RREAL          double
177   #define  FTINY          (1e-6)
178   #endif
179   #define  FHUGE          (1e10)
180  
181 < typedef FLOAT  FVECT[3];
181 > typedef RREAL  FVECT[3];
182  
183   #define  VCOPY(v1,v2)   ((v1)[0]=(v2)[0],(v1)[1]=(v2)[1],(v1)[2]=(v2)[2])
184   #define  DOT(v1,v2)     ((v1)[0]*(v2)[0]+(v1)[1]*(v2)[1]+(v1)[2]*(v2)[2])
# Line 295 | Line 295 | extern void    obj_clear(void);                /* clear object stack */
295   *      Definitions for hierarchical transformation handler
296   */
297  
298 < typedef FLOAT  MAT4[4][4];
298 > typedef RREAL  MAT4[4][4];
299  
300 #ifdef  BSD
301 #define  copymat4(m4a,m4b)      bcopy((char *)m4b,(char *)m4a,sizeof(MAT4))
302 #else
300   #define  copymat4(m4a,m4b)      (void)memcpy((char *)m4a,(char *)m4b,sizeof(MAT4))
304 #endif
301  
302   #define  MAT4IDENT              { {1.,0.,0.,0.}, {0.,1.,0.,0.}, \
303                                  {0.,0.,1.,0.}, {0.,0.,0.,1.} }
# Line 313 | Line 309 | extern MAT4  m4ident;
309                                  /* regular transformation */
310   typedef struct {
311          MAT4    xfm;                            /* transform matrix */
312 <        FLOAT   sca;                            /* scalefactor */
312 >        RREAL   sca;                            /* scalefactor */
313   }  XF;
314  
315   #define identxf(xp)             (void)(setident4((xp)->xfm),(xp)->sca=1.0)
# Line 377 | Line 373 | extern void    multmat4(MAT4, MAT4, MAT4);     /* m4a = m4b X
373   extern void     multv3(FVECT, FVECT, MAT4);     /* v3a = v3b X m4 (vectors) */
374   extern void     multp3(FVECT, FVECT, MAT4);     /* p3a = p3b X m4 (points) */
375   extern int      xf(XF *, int, char **);         /* interpret transform spec. */
376 +
377 +        /* cvrgb.c */
378 + extern void mgf2rgb(C_COLOR *cin, double intensity, float cout[3]);
379  
380  
381   /************************************************************************

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines