2 |
|
/* |
3 |
|
* view.h - header file for image generation. |
4 |
|
* |
5 |
< |
* Include after stdio.h and fvect.h |
5 |
> |
* Include after stdio.h and rtmath.h |
6 |
|
* Includes resolu.h |
7 |
|
*/ |
8 |
|
#ifndef _RAD_VIEW_H_ |
26 |
|
FVECT vp; /* view origin */ |
27 |
|
FVECT vdir; /* view direction */ |
28 |
|
FVECT vup; /* view up */ |
29 |
+ |
double vdist; /* view distance */ |
30 |
|
double horiz; /* horizontal view size */ |
31 |
|
double vert; /* vertical view size */ |
32 |
|
double hoff; /* horizontal image offset */ |
44 |
|
#define viewaspect(v) sqrt((v)->vn2/(v)->hn2) |
45 |
|
|
46 |
|
#define STDVIEW {VT_PER,{0.,0.,0.},{0.,1.,0.},{0.,0.,1.}, \ |
47 |
< |
45.,45.,0.,0.,0.,0., \ |
47 |
> |
1.,45.,45.,0.,0.,0.,0., \ |
48 |
|
{0.,0.,0.},{0.,0.,0.},0.,0.} |
49 |
|
|
50 |
|
#define VIEWSTR "VIEW=" |