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.21 by greg, Sat Feb 22 02:07:25 2003 UTC vs.
Revision 3.23 by schorsch, Mon Jul 14 22:24:00 2003 UTC

# Line 2 | Line 2
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 "vars.h"
10  
11 + #ifdef __cplusplus
12 + extern "C" {
13 + #endif
14 +
15   #ifndef RPACKSIZ
16   #define RPACKSIZ        21              /* good packet size */
17   #endif
18  
19   typedef struct packet {
20 <        int2    hd;             /* holodeck section (first) */
21 <        int4    bi;             /* beam index (second) */
22 <        int4    nr;             /* number of rays (third) */
23 <        int4    nc;             /* number calculated (fourth) */
20 >        int16   hd;             /* holodeck section (first) */
21 >        int32   bi;             /* beam index (second) */
22 >        int32   nr;             /* number of rays (third) */
23 >        int32   nc;             /* number calculated (fourth) */
24          RAYVAL  ra[RPACKSIZ];   /* ray values (fifth) */
25          float   *offset;        /* offset array if !vbool(OBSTRUCTIONS) */
26          struct packet   *next;  /* next in packet list */
27   } PACKET;               /* a beam packet */
28  
29   typedef struct {
30 <        int2    hd;             /* holodeck section (first) */
31 <        int4    bi;             /* beam index (second) */
32 <        int4    nr;             /* number of rays (third) */
33 <        int4    nc;             /* number calculated (fourth) */
30 >        int16   hd;             /* holodeck section (first) */
31 >        int32   bi;             /* beam index (second) */
32 >        int32   nr;             /* number of rays (third) */
33 >        int32   nc;             /* number calculated (fourth) */
34   } PACKHEAD;             /* followed by ray values */
35  
36   #define packsiz(nr)     (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL))
# Line 113 | Line 119 | extern char    *rtargv[];
119  
120   extern PACKET   *do_packets(), *get_packets(), *flush_queue();
121  
122 < extern int2     *viewbeams();
122 > extern int16    *viewbeams();
123 >
124 >
125 > #ifdef __cplusplus
126 > }
127 > #endif
128 > #endif /* _RAD_RHOLO_H_ */
129 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines