WWPalette.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _WWPalette_h_INCLUDED_
  2. #define _WWPalette_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. #include <stdlib.h>
  7. /*****************************************************************************/
  8. /* クラスの定義 */
  9. /*****************************************************************************/
  10. typedef struct _WWPalette * WWPalette;
  11. /*****************************************************************************/
  12. /* メンバ関数の宣言 */
  13. /*****************************************************************************/
  14. int WWPalette_GetNumber(WWPalette p);
  15. int WWPalette_SetNumber(WWPalette p, int n);
  16. int WWPalette_GetTransparent(WWPalette palette);
  17. int WWPalette_SetTransparent(WWPalette palette, int f);
  18. WWPalette WWPalette_Create(int number, int * mapped_colors, int transparent);
  19. WWPalette WWPalette_Destroy(WWPalette palette);
  20. int * WWPalette_GetMappedColors(WWPalette palette, int * mapped_colors);
  21. int WWPalette_SetMappedColors(WWPalette palette, int * mapped_colors);
  22. int WWPalette_GetMappedColor(WWPalette palette, int color);
  23. int WWPalette_SetMappedColor(WWPalette palette, int color, int mapped_color);
  24. /*****************************************************************************/
  25. /* ここまで */
  26. /*****************************************************************************/
  27. #endif
  28. /*****************************************************************************/
  29. /* End of File. */
  30. /*****************************************************************************/