home *** CD-ROM | disk | FTP | other *** search
- /*
- ** MacWT -- a 3d game engine for the Macintosh
- ** © 1995, Bill Hayden and Nikol Software
- ** Free for non-commercial use - address questions to the e-mail address below
- **
- ** Mail: afn28988@freenet.ufl.edu (Bill Hayden)
- ** MacWT FTP site: ftp.circa.ufl.edu/pub/software/ufmug/mirrors/LocalSW/Hayden/
- ** WWW Page: http://grove.ufl.edu:80/~nikolsw
- **
- ** All of the above addresses are due to changes sometime in 1996, so stay tuned
- **
- ** based on wt, by Chris Laurel
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-
- #ifndef FIXED_H_
- #include "fixed.h"
- #endif
-
-
- typedef struct {
- fixed x, y, height;
- fixed angle;
- fixed arc;
- fixed view_plane_size;
- fixed eye_distance;
- } View;
-
-
- View *CreateView(fixed field_of_view, fixed eye_distance);
- void SetFieldOfView(View *view, fixed field_of_view);
- void SetEyeDistance(View *view, fixed eye_distance);
- void SetViewpoint(View *view, fixed x, fixed y, fixed z, fixed angle);
- void ShiftViewpoint(View *view, fixed dx, fixed dy, fixed dz, fixed dangle);
-