home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter65 / l65_1.h < prev    next >
Text File  |  1997-06-18  |  702b  |  33 lines

  1. typedef struct {
  2.     double v[3];
  3. } point_t;
  4.  
  5. typedef struct {
  6.     double   x, y;
  7. } point2D_t;
  8.  
  9. typedef struct {
  10.     int         color;
  11.     int         numverts;
  12.     point_t     verts[MAX_POLY_VERTS];
  13. } polygon_t;
  14.  
  15. typedef struct {
  16.     int         color;
  17.     int         numverts;
  18.     point2D_t   verts[MAX_POLY_VERTS];
  19. } polygon2D_t;
  20.  
  21. typedef struct convexobject_s {
  22.     struct convexobject_s   *pnext;
  23.     point_t                 center;
  24.     double                  vdist;
  25.     int                     numpolys;
  26.     polygon_t               *ppoly;
  27. } convexobject_t;
  28.  
  29. typedef struct {
  30.     double  distance;
  31.     point_t normal;
  32. } plane_t;
  33.