ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/data.h
Revision: 2.3
Committed: Thu Feb 15 18:46:56 1996 UTC (28 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.2: +10 -8 lines
Log Message:
made pictures use RGBE storage r.t. float
reduced MAXDDIM to 5

File Contents

# Content
1 /* Copyright (c) 1996 Regents of the University of California */
2
3 /* SCCSid "$SunId$ LBL" */
4
5 /*
6 * data.h - header file for routines which interpolate data.
7 */
8
9 #define MAXDDIM 5 /* maximum data dimensions */
10
11 #define DATATYPE float /* single precision to save space */
12 #define DATATY 'f' /* format for DATATYPE */
13
14 typedef struct datarray {
15 char *name; /* name of our data */
16 short type; /* DATATY, RED, GRN or BLU */
17 short nd; /* number of dimensions */
18 struct {
19 DATATYPE org, siz; /* coordinate domain */
20 int ne; /* number of elements */
21 DATATYPE *p; /* point locations */
22 } dim[MAXDDIM]; /* dimension specifications */
23 union {
24 DATATYPE *d; /* float data */
25 COLR *c; /* RGB data */
26 } arr; /* the data */
27 struct datarray *next; /* next array in list */
28 } DATARRAY; /* a data array */
29
30 extern DATARRAY *getdata(), *getpict();
31
32 extern double datavalue();