palette.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (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 GNU
  15. * 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, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /* PALETTE.H- Declarations for PALETTE.CPP */
  22. #ifndef __PALETTE_H
  23. #define __PALETTE_H
  24. extern char smzx_mode;
  25. void init_palette(void);
  26. void set_palette_intensity(char percent);
  27. void set_color_intensity(char color,char percent);
  28. void set_rgb(char color,char r,char g,char b);
  29. char get_color_intensity(char color);
  30. void get_rgb(char color,char &r,char &g,char &b);
  31. void update_palette(char wait_for_retrace=1);
  32. void smzx_update_palette(char wait_for_retrace=1);
  33. void normal_update_palette(char wait_for_retrace=1);
  34. void update_HIGHpalette(char wait_for_retrace=1);
  35. void vquick_fadeout(void);
  36. void vquick_fadein(void);
  37. void insta_fadeout(void);
  38. void insta_fadein(void);
  39. void default_palette(void);
  40. char is_faded(void);
  41. int get_Color_Aspect(char color,char aspect);
  42. void set_Color_Aspect(char color,char aspect,int value);
  43. #endif