| 2 |
|
|
| 3 |
|
/* SCCSid "$SunId$ SGI" */ |
| 4 |
|
|
| 5 |
+ |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
| 6 |
+ |
|
| 7 |
+ |
/* SCCSid "$SunId$ SGI" */ |
| 8 |
+ |
|
| 9 |
|
/* |
| 10 |
|
* Header file for rholo program |
| 11 |
|
*/ |
| 33 |
|
} PACKHEAD; /* followed by ray values */ |
| 34 |
|
|
| 35 |
|
#define packsiz(nr) (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL)) |
| 36 |
< |
#define packray(p) (RAYVAL *)((PACKHEAD *)(p)+1) |
| 36 |
> |
#define packra(p) ((RAYVAL *)((p)+1)) |
| 37 |
|
|
| 38 |
|
/* input variables */ |
| 39 |
|
#define RENDER 0 /* rendering options */ |
| 40 |
< |
#define VIEW 1 /* starting view */ |
| 41 |
< |
#define SECTION 2 /* holodeck section boundaries */ |
| 42 |
< |
#define OCTREE 3 /* octree file name */ |
| 43 |
< |
#define RIF 4 /* rad input file */ |
| 44 |
< |
#define EXPOSURE 5 /* section exposure value */ |
| 45 |
< |
#define TIME 6 /* maximum rendering time */ |
| 46 |
< |
#define DISKSPACE 7 /* how much disk space to use */ |
| 47 |
< |
#define CACHE 8 /* amount of memory to use as cache */ |
| 48 |
< |
#define GRID 9 /* target grid size */ |
| 49 |
< |
#define OBSTRUCTIONS 10 /* shall we track obstructions? */ |
| 50 |
< |
#define OCCUPANCY 11 /* expected occupancy probability */ |
| 47 |
< |
#define REPORT 12 /* report interval and error file */ |
| 40 |
> |
#define SECTION 1 /* holodeck section boundaries */ |
| 41 |
> |
#define OCTREE 2 /* octree file name */ |
| 42 |
> |
#define RIF 3 /* rad input file */ |
| 43 |
> |
#define EXPOSURE 4 /* section exposure value */ |
| 44 |
> |
#define TIME 5 /* maximum rendering time */ |
| 45 |
> |
#define DISKSPACE 6 /* how much disk space to use */ |
| 46 |
> |
#define CACHE 7 /* amount of memory to use as cache */ |
| 47 |
> |
#define GRID 8 /* target grid size */ |
| 48 |
> |
#define OBSTRUCTIONS 9 /* shall we track obstructions? */ |
| 49 |
> |
#define OCCUPANCY 10 /* expected occupancy probability */ |
| 50 |
> |
#define REPORT 11 /* report interval and error file */ |
| 51 |
|
|
| 52 |
< |
#define NRHVARS 13 /* number of variables */ |
| 52 |
> |
#define NRHVARS 12 /* number of variables */ |
| 53 |
|
|
| 54 |
|
#define RHVINIT { \ |
| 55 |
|
{"render", 3, 0, NULL, catvalues}, \ |
| 53 |
– |
{"view", 2, 0, NULL, NULL}, \ |
| 56 |
|
{"section", 3, 0, NULL, NULL}, \ |
| 57 |
|
{"OCTREE", 3, 0, NULL, onevalue}, \ |
| 58 |
|
{"RIF", 3, 0, NULL, onevalue}, \ |
| 65 |
|
{"OCCUPANCY", 3, 0, NULL, onevalue}, \ |
| 66 |
|
{"REPORT", 3, 0, NULL, onevalue}, \ |
| 67 |
|
} |
| 68 |
+ |
|
| 69 |
+ |
/* bundle set requests */ |
| 70 |
+ |
#define BS_NEW 0 /* replace current set with new one */ |
| 71 |
+ |
#define BS_ADD 1 /* add to current set */ |
| 72 |
+ |
#define BS_DEL 2 /* delete from current set */ |
| 73 |
|
|
| 74 |
|
extern char *progname; /* our program name */ |
| 75 |
|
extern char *hdkfile; /* holodeck file name */ |