home *** CD-ROM | disk | FTP | other *** search
/ Superpower (Alt) / SUPERPOWER.iso / q / source / mbq198 / light.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-26  |  787 b   |  39 lines

  1. // structure of the light lump
  2.  
  3. #include "cmdlib.h"
  4. #include "mathlib.h"
  5. #include "bspfile.h"
  6. #include "entities.h"
  7. #include "threads.h"
  8.  
  9. #define    ON_EPSILON    0.1
  10.  
  11. #define    MAXLIGHTS            1024
  12.  
  13. void LoadNodes (char *file);
  14. qboolean TestLine (vec3_t start, vec3_t stop);
  15.  
  16. void LightFace (int surfnum);
  17. void LightLeaf (dleaf_t *leaf);
  18.  
  19. void MakeTnodes (dmodel_t *bm);
  20.  
  21. extern    float        scaledist;
  22. extern    float        scalecos;
  23.  
  24. extern    int        c_culldistplane, c_proper;
  25.  
  26. byte *GetFileSpace (int size);
  27. extern    byte        *filebase;
  28.  
  29. extern    vec3_t    bsp_origin;
  30. extern    vec3_t    bsp_xvector;
  31. extern    vec3_t    bsp_yvector;
  32.  
  33. void TransformSample (vec3_t in, vec3_t out);
  34. void RotateSample (vec3_t in, vec3_t out);
  35.  
  36. extern    qboolean    extrasamples;
  37.  
  38. extern    float        minlights[MAX_MAP_FACES];
  39.