home *** CD-ROM | disk | FTP | other *** search
/ Dream 57 / Amiga_Dream_57.iso / Amiga / Programmation / c / QuakeC / qtools0.2-src.lha / src / libqbuild / brush.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-13  |  748 b   |  31 lines

  1. #ifndef    BRUSH_H
  2. #define    BRUSH_H
  3.  
  4. /* brush.c */
  5.  
  6. #define    NUM_HULLS    2                    /* normal and +16 */
  7. #define    NUM_CONTENTS    2                    /* solid and water */
  8.  
  9. struct brush {
  10.   struct brush *next;
  11.   vec3_t mins, maxs;
  12.   struct visfacet *faces;
  13.   int contents;
  14. } __packed;
  15.  
  16. struct brushset {
  17.   vec3_t mins, maxs;
  18.   struct brush *brushes;                    /* NULL terminated list */
  19.   /* PROGRESS-ONLY! */
  20.   int numbrushes;
  21. } __packed;
  22.  
  23. /*============================================================================= */
  24.  
  25. struct brushset *Brush_LoadEntity(__memBase, struct entity *ent, int hullnum);
  26. void CheckFace(__memBase, register struct visfacet *f);
  27. int PlaneTypeForNormal(vec3_t normal);
  28. int FindPlane(__memBase, register struct plane *dplane, register int *side);
  29.  
  30. #endif
  31.