SCREEN.H 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __SCREEN_H
  2. #define __SCREEN_H
  3. #include "typedefs.h"
  4. /***********************************************************************
  5. * Constants
  6. **********************************************************************/
  7. enum {
  8. kPLUNormal = 0,
  9. kPLURed = 2,
  10. kPLUCultist2 = 3,
  11. kPLUSpider3 = 4,
  12. kPLUGray = 5,
  13. kPLUGrayish = 6,
  14. kPLUSpider1 = 7,
  15. kPLUSpider2 = 8,
  16. kPLUFlame = 9,
  17. kPLUCold = 10,
  18. kPLUPlayer1 = 11, // also kPLUPlayer5
  19. kPLUPlayer2, // also kPLUPlayer6
  20. kPLUPlayer3, // also kPLUPlayer7
  21. kPLUPlayer4, // also kPLUPlayer8
  22. kMaxPLU,
  23. };
  24. enum {
  25. kPalNormal = 0,
  26. kPalWater,
  27. kPalBeast,
  28. kMaxPalettes,
  29. };
  30. #define kPalLookups 64
  31. extern int gGammaLevels;
  32. extern BOOL gFogMode;
  33. extern BYTE gStdColor[32];
  34. /***********************************************************************
  35. * Functions
  36. **********************************************************************/
  37. BYTE scrFindClosestColor( int r, int g, int b );
  38. void scrCreateStdColors( void );
  39. void scrLoadPLUs( void );
  40. void scrLoadPalette( void );
  41. void scrSetMessage( char * );
  42. void scrDisplayMessage( int nColor );
  43. void scrSetPalette(int nPal);
  44. void scrSetGamma( int nGamma );
  45. void scrDacRelEffect(int r, int g, int b);
  46. void scrDacAbsEffect(int r, int g, int b);
  47. void scrSetupFade( BYTE r, BYTE g, BYTE b );
  48. void scrSetupUnfade( void );
  49. void scrFadeAmount( int nFrac );
  50. void scrSetDac( ulong nTicks );
  51. void scrInit(void);
  52. void scrSetGameMode( void );
  53. void scrNextPage( void );
  54. #endif