home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / povsrc31.zip / lightgrp.h < prev    next >
C/C++ Source or Header  |  1998-12-03  |  1KB  |  35 lines

  1. /****************************************************************************
  2. *                   lightgrp.h
  3. *
  4. *
  5. *****************************************************************************/
  6.  
  7. #ifndef LIGHTGRP_H
  8. #define LIGHTGRP_H
  9.  
  10. /* Generic header for all modules */
  11.  
  12. #include "point.h"
  13.  
  14. /* XOR */
  15.  
  16. #define Check_No_Shadow_Group(o,l) \
  17.     (!((l)->In_Group[(o)->No_Shadow_Group]) ^ /* XOR */ \
  18.     !(Test_Flag(o,INVERT_NO_SHADOW_GROUP)))
  19.  
  20. #define Check_Light_Group(o,l) \
  21.     (!((l)->In_Group[(o)->Light_Group]) ^ /* XOR */ \
  22.     !(Test_Flag(o,INVERT_LIGHT_GROUP)))
  23.  
  24. #define Check_Media_Light_Group(o,l) \
  25.     (!((l)->In_Group[(o)->Light_Group]) ^ /* XOR */ \
  26.     !((o)->Invert_Light_Group))
  27.  
  28. unsigned char Get_Light_Group(char *str, int *flag);
  29. void Assign_Light_Groups(LIGHT_SOURCE *Light,char *groups);
  30. void InitLightGroupTable(void);
  31. void DestroyLightGroupTable(void);
  32. void Post_Light_Groups(OBJECT *Object);
  33. void Set_Sibling_Light_Groups(OBJECT *Sib, int Group, int Shadow, int IG, int IS);
  34. #endif
  35.