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

Comparing ray/src/rt/data.h (file contents):
Revision 2.6 by schorsch, Sat Jun 7 00:54:58 2003 UTC vs.
Revision 2.8 by greg, Wed Dec 13 23:26:16 2023 UTC

# Line 8 | Line 8
8   extern "C" {
9   #endif
10  
11
12 #include "copyright.h"
13
11   #define  MAXDDIM        5               /* maximum data dimensions */
12  
13   #define  DATATYPE       float           /* single precision to save space */
14   #define  DATATY         'f'             /* format for DATATYPE */
15 + #define  SPECTY         'c'             /* format for SCOLR */
16  
17   typedef struct datarray {
18          char  *name;                    /* name of our data */
19 <        short  type;                    /* DATATY, RED, GRN or BLU */
19 >        short  type;                    /* DATATY, SPECTY, RED, GRN or BLU */
20          short  nd;                      /* number of dimensions */
21          struct {
22                  DATATYPE  org, siz;             /* coordinate domain */
# Line 27 | Line 25 | typedef struct datarray {
25          } dim[MAXDDIM];                 /* dimension specifications */
26          union {
27                  DATATYPE  *d;                   /* float data */
28 <                COLR  *c;                       /* RGB data */
28 >                COLR  *c;                       /* RGBE data */
29 >                uby8  *s;                       /* spectral data */
30 >                void  *p;                       /* generic pointer */
31          }  arr;                         /* the data */
32          struct datarray  *next;         /* next array in list */
33   } DATARRAY;                     /* a data array */
# Line 35 | Line 35 | typedef struct datarray {
35  
36   extern DATARRAY *getdata(char *dname);
37   extern DATARRAY *getpict(char *pname);
38 + extern DATARRAY *getspec(char *sname);
39   extern void     freedata(DATARRAY *dta);
40   extern double   datavalue(DATARRAY *dp, double *pt);
41  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines