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

Comparing ray/src/common/view.h (file contents):
Revision 2.8 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.12 by greg, Mon Jun 30 19:04:29 2003 UTC

# Line 2 | Line 2
2   /*
3   *  view.h - header file for image generation.
4   *
5 < *  Include after fvect.h
5 > *  Include after stdio.h and fvect.h
6   *  Includes resolu.h
7   */
8 + #ifndef _RAD_VIEW_H_
9 + #define _RAD_VIEW_H_
10 + #ifdef __cplusplus
11 + extern "C" {
12 + #endif
13  
9 #include "copyright.h"
10
14   #include  "resolu.h"
15  
16                                  /* view types */
# Line 45 | Line 48 | extern VIEW  stdview;
48   #define  VIEWSTR        "VIEW="
49   #define  VIEWSTRL       5
50  
48 #ifdef NOPROTO
51  
50 extern char     *setview();
51 extern void     normaspect();
52 extern double   viewray();
53 extern void     viewloc();
54 extern void     pix2loc();
55 extern void     loc2pix();
56 extern int      getviewopt();
57 extern int      sscanview();
58 extern void     fprintview();
59 extern char     *viewopt();
60 extern int      isview();
61 extern int      viewfile();
62
63 #else
64
52   extern char     *setview(VIEW *v);
53   extern void     normaspect(double va, double *ap, int *xp, int *yp);
54   extern double   viewray(FVECT orig, FVECT direc, VIEW *v, double x, double y);
55   extern void     viewloc(FVECT ip, VIEW *v, FVECT p);
56 < extern void     pix2loc(FLOAT loc[2], RESOLU *rp, int px, int py);
56 > extern void     pix2loc(RREAL loc[2], RESOLU *rp, int px, int py);
57   extern void     loc2pix(int pp[2], RESOLU *rp, double lx, double ly);
58   extern int      getviewopt(VIEW *v, int ac, char *av[]);
59   extern int      sscanview(VIEW *vp, char *s);
# Line 75 | Line 62 | extern char    *viewopt(VIEW *vp);
62   extern int      isview(char *s);
63   extern int      viewfile(char *fname, VIEW *vp, RESOLU *rp);
64  
65 +
66 + #ifdef __cplusplus
67 + }
68   #endif
69 + #endif /* _RAD_VIEW_H_ */
70 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines