40 lines
1.9 KiB
C
40 lines
1.9 KiB
C
#ifndef _WWPalette_h_INCLUDED_
|
|
#define _WWPalette_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdlib.h>
|
|
|
|
/*****************************************************************************/
|
|
/* クラスの定義 */
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _WWPalette * WWPalette;
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の宣言 */
|
|
/*****************************************************************************/
|
|
|
|
int WWPalette_GetNumber(WWPalette p);
|
|
int WWPalette_SetNumber(WWPalette p, int n);
|
|
int WWPalette_GetTransparent(WWPalette palette);
|
|
int WWPalette_SetTransparent(WWPalette palette, int f);
|
|
WWPalette WWPalette_Create(int number, int * mapped_colors, int transparent);
|
|
WWPalette WWPalette_Destroy(WWPalette palette);
|
|
int * WWPalette_GetMappedColors(WWPalette palette, int * mapped_colors);
|
|
int WWPalette_SetMappedColors(WWPalette palette, int * mapped_colors);
|
|
int WWPalette_GetMappedColor(WWPalette palette, int color);
|
|
int WWPalette_SetMappedColor(WWPalette palette, int color, int mapped_color);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|