palette.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // Copyright (c) 2009, Wei Mingzhi <whistler_wmz@users.sf.net>.
  3. // All rights reserved.
  4. //
  5. // This file is part of SDLPAL.
  6. //
  7. // SDLPAL is free software: you can redistribute it and/or modify
  8. // it under the terms of the GNU General Public License as published by
  9. // the Free Software Foundation, either version 3 of the License, or
  10. // (at your option) any later version.
  11. //
  12. // This program is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. //
  20. #ifndef PALETTE_H
  21. #define PALETTE_H
  22. #include "common.h"
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27. SDL_Color *
  28. PAL_GetPalette(
  29. INT iPaletteNum,
  30. BOOL fNight
  31. );
  32. VOID
  33. PAL_SetPalette(
  34. INT iPaletteNum,
  35. BOOL fNight
  36. );
  37. VOID
  38. PAL_FadeOut(
  39. INT iDelay
  40. );
  41. VOID
  42. PAL_FadeIn(
  43. INT iPaletteNum,
  44. BOOL fNight,
  45. INT iDelay
  46. );
  47. VOID
  48. PAL_SceneFade(
  49. INT iPaletteNum,
  50. BOOL fNight,
  51. INT iStep
  52. );
  53. VOID
  54. PAL_PaletteFade(
  55. INT iPaletteNum,
  56. BOOL fNight,
  57. INT iDelay
  58. );
  59. VOID
  60. PAL_ColorFade(
  61. INT iDelay,
  62. BYTE bColor,
  63. BOOL fFrom
  64. );
  65. VOID
  66. PAL_FadeToRed(
  67. VOID
  68. );
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif