home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacWT 0.9 / wt Source / view.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-10  |  1.2 KB  |  39 lines  |  [TEXT/CWIE]

  1. /*
  2. **  MacWT -- a 3d game engine for the Macintosh
  3. **  © 1995, Bill Hayden and Nikol Software
  4. **  Free for non-commercial use - address questions to the e-mail address below
  5. **
  6. **  Mail:           afn28988@freenet.ufl.edu (Bill Hayden)
  7. **    MacWT FTP site: ftp.circa.ufl.edu/pub/software/ufmug/mirrors/LocalSW/Hayden/
  8. **  WWW Page:       http://grove.ufl.edu:80/~nikolsw
  9. **
  10. **    All of the above addresses are due to changes sometime in 1996, so stay tuned
  11. **
  12. **  based on wt, by Chris Laurel
  13. **
  14. **  This program is distributed in the hope that it will be useful,
  15. **  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. */
  18.  
  19.  
  20. #ifndef FIXED_H_
  21. #include "fixed.h"
  22. #endif
  23.  
  24.  
  25. typedef struct {
  26.      fixed x, y, height;
  27.      fixed angle;
  28.      fixed arc;
  29.      fixed view_plane_size;
  30.      fixed eye_distance;
  31. } View;
  32.  
  33.  
  34. View *CreateView(fixed field_of_view, fixed eye_distance);
  35. void SetFieldOfView(View *view, fixed field_of_view);
  36. void SetEyeDistance(View *view, fixed eye_distance);
  37. void SetViewpoint(View *view, fixed x, fixed y, fixed z, fixed angle);
  38. void ShiftViewpoint(View *view, fixed dx, fixed dy, fixed dz, fixed dangle);
  39.