WWPalette.h 2.0 KB

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