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.11 by greg, Fri Jun 27 06:53:22 2003 UTC vs.
Revision 2.18 by greg, Tue Mar 11 02:21:46 2008 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 rtmath.h
6   *  Includes resolu.h
7   */
8   #ifndef _RAD_VIEW_H_
9   #define _RAD_VIEW_H_
10 +
11 + #include  "resolu.h"
12 +
13   #ifdef __cplusplus
14   extern "C" {
15   #endif
16  
14 #include  "resolu.h"
15
17                                  /* view types */
18   #define  VT_PER         'v'             /* perspective */
19   #define  VT_PAR         'l'             /* parallel */
20   #define  VT_ANG         'a'             /* angular fisheye */
21   #define  VT_HEM         'h'             /* hemispherical fisheye */
22 + #define  VT_PLS         's'             /* planispheric fisheye */
23   #define  VT_CYL         'c'             /* cylindrical panorama */
24  
25   typedef struct {
# Line 25 | Line 27 | typedef struct {
27          FVECT  vp;              /* view origin */
28          FVECT  vdir;            /* view direction */
29          FVECT  vup;             /* view up */
30 +        double  vdist;          /* view distance */
31          double  horiz;          /* horizontal view size */
32          double  vert;           /* vertical view size */
33          double  hoff;           /* horizontal image offset */
# Line 42 | Line 45 | extern VIEW  stdview;
45   #define  viewaspect(v)  sqrt((v)->vn2/(v)->hn2)
46  
47   #define  STDVIEW        {VT_PER,{0.,0.,0.},{0.,1.,0.},{0.,0.,1.}, \
48 <                                45.,45.,0.,0.,0.,0., \
48 >                                1.,45.,45.,0.,0.,0.,0., \
49                                  {0.,0.,0.},{0.,0.,0.},0.,0.}
50  
51   #define  VIEWSTR        "VIEW="

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines