home *** CD-ROM | disk | FTP | other *** search
/ Cutting-Edge 3D Game Programming with C++ / CE3DC++.ISO / BOOK / CHAP12 / 3DCLASS.HPP < prev    next >
C/C++ Source or Header  |  1996-01-24  |  931b  |  48 lines

  1. //
  2. // File name: 3DClass.HPP
  3. //
  4. // Description: Assorted functions and variables
  5. //
  6. // Author: John De Goes
  7. //
  8. // Project: Cutting Edge 3D Game Programming
  9. //
  10.  
  11. #ifndef _3DCLASSHPP
  12. #define _3DCLASSHPP
  13.  
  14. #include <Stdio.h>
  15. #include <String.h>
  16.  
  17. #include "SinCos.HPP"
  18. #include "Point2D.HPP"
  19. #include "Point3D.HPP"
  20. #include "Vector3D.HPP"
  21. #include "Matrix3D.HPP"
  22. #include "ATypes.HPP"
  23. #include "Panel3D.HPP"
  24. #include "PolyObj.HPP"
  25.  
  26. #define PI      3.141592654
  27. #define MINX    0
  28. #define MAXX    320
  29. #define MINY    0
  30. #define MAXY    200
  31. #define WIDTH   320
  32. #define HEIGHT  200
  33. #define XCENTER 160
  34. #define YCENTER 100
  35. #define MINZ    100.0F
  36. #define MAXZ    3000.0F
  37. #define XSCALE  120
  38. #define YSCALE -120
  39. #define COLOR_RANGE 8
  40. #define COLOR_START 8
  41. #define SHADE_DIV ( ( double ) ( MAXZ - MINZ ) / ( double ) SHADE_COUNT )
  42.  
  43. extern long *ZBuffer;
  44. extern long ZTrans;
  45.  
  46. void InitMath ();
  47. #endif
  48.