libwwc.h 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _WONX_SYS_LIBWWC_H_
  2. #define _WONX_SYS_LIBWWC_H_
  3. #include "service.h"
  4. /*****************************************************************************/
  5. /* 定数の定義 */
  6. /*****************************************************************************/
  7. #define COLOR_MODE_GRAYSCALE 0x00
  8. #define COLOR_MODE_4COLOR 0x80
  9. #define COLOR_MODE_16COLOR 0xC0
  10. #define COLOR_MODE_16PACKED 0xE0
  11. #define HARDARCH_WS 0
  12. #define HARDARCH_WSC 1
  13. /*****************************************************************************/
  14. /* 互換関数の宣言 */
  15. /*****************************************************************************/
  16. unsigned int wwc_set_color_mode(unsigned int mode);
  17. unsigned int wwc_get_color_mode(void);
  18. void wwc_palette_set_color(unsigned int palette_num, unsigned int color_num, unsigned int rgb);
  19. unsigned int wwc_palette_get_color(unsigned int palette_num, unsigned int color_num);
  20. void wwc_font_set_colordata(unsigned int number, unsigned int count,
  21. unsigned long int * data);
  22. void wwc_font_get_colordata(unsigned int number, unsigned int count,
  23. unsigned long int * data);
  24. unsigned int wwc_get_hardarch(void);
  25. void wwc_clear_font(void);
  26. #endif