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

Comparing ray/src/hd/rholo.h (file contents):
Revision 3.20 by gwlarson, Thu Mar 4 10:29:23 1999 UTC vs.
Revision 3.26 by greg, Mon Mar 21 19:06:08 2016 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Header file for rholo program
4   */
5 + #ifndef _RAD_RHOLO_H_
6 + #define _RAD_RHOLO_H_
7  
8   #include "holo.h"
9 + #include "view.h"
10   #include "vars.h"
11  
12 + #ifdef __cplusplus
13 + extern "C" {
14 + #endif
15 +
16   #ifndef RPACKSIZ
17   #define RPACKSIZ        21              /* good packet size */
18   #endif
19  
20   typedef struct packet {
21 <        int2    hd;             /* holodeck section (first) */
22 <        int4    bi;             /* beam index (second) */
23 <        int4    nr;             /* number of rays (third) */
24 <        int4    nc;             /* number calculated (fourth) */
21 >        int16   hd;             /* holodeck section (first) */
22 >        int32   bi;             /* beam index (second) */
23 >        int32   nr;             /* number of rays (third) */
24 >        int32   nc;             /* number calculated (fourth) */
25          RAYVAL  ra[RPACKSIZ];   /* ray values (fifth) */
26          float   *offset;        /* offset array if !vbool(OBSTRUCTIONS) */
27          struct packet   *next;  /* next in packet list */
28   } PACKET;               /* a beam packet */
29  
30   typedef struct {
31 <        int2    hd;             /* holodeck section (first) */
32 <        int4    bi;             /* beam index (second) */
33 <        int4    nr;             /* number of rays (third) */
34 <        int4    nc;             /* number calculated (fourth) */
31 >        int16   hd;             /* holodeck section (first) */
32 >        int32   bi;             /* beam index (second) */
33 >        int32   nr;             /* number of rays (third) */
34 >        int32   nc;             /* number calculated (fourth) */
35   } PACKHEAD;             /* followed by ray values */
36  
37   #define packsiz(nr)     (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL))
# Line 111 | Line 115 | extern time_t  reporttime;     /* time for next report */
115   extern long     nraysdone;      /* number of rays done */
116   extern long     npacksdone;     /* number of packets done */
117  
118 + #define MAXRTARGC       256
119   extern int      rtargc;         /* rtrace command */
120   extern char     *rtargv[];
121  
122 < extern PACKET   *do_packets(), *get_packets(), *flush_queue();
122 >        /* rholo.c */
123 > extern void done_packets(PACKET *pl);
124 >        /* rholo2.c */
125 > extern void new_rtrace(void);
126 > extern int done_rtrace(void);
127 > extern void packrays(float *rod, PACKET *p);
128 > extern void donerays(PACKET *p, float *rvl);
129 > extern int getradfile(void);
130 > extern void report(time_t t);
131 >        /* rholo2l.c */
132 > extern int start_rtrace(void);
133 > extern int end_rtrace(void);
134 > extern PACKET *do_packets(PACKET *pl);
135 > extern PACKET *flush_queue(void);
136 >        /* rholo3.c */
137 > extern void init_global(void);
138 > extern int next_packet(PACKET *p, int   n);
139 > extern void bundle_set(int op, PACKHEAD *clist, int nents);
140 >        /* rholo4.c */
141 > extern void disp_open(char *dname);
142 > extern void disp_packet(register PACKHEAD *p);
143 > extern int disp_check(int block);
144 > extern int disp_close(void);
145 >        /* viewbeams.c */
146 > extern int nextview(VIEW *vp, FILE *fp);
147 > extern int16 * viewbeams(VIEW *vp, int hr, int vr, BEAMLIST *blp);
148  
149 < extern int2     *viewbeams();
149 > #ifdef __cplusplus
150 > }
151 > #endif
152 > #endif /* _RAD_RHOLO_H_ */
153 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines