12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef _WWPalette_h_INCLUDED_
- #define _WWPalette_h_INCLUDED_
- /*****************************************************************************/
- /* ここから */
- /*****************************************************************************/
- /*****************************************************************************/
- /* クラスの定義 */
- /*****************************************************************************/
- typedef struct _WWPalette * WWPalette;
- /*****************************************************************************/
- /* ヘッダファイルのインクルード */
- /*****************************************************************************/
- #include <stdio.h>
- #include <stdlib.h>
- #include "WWDisplay.h"
- /*****************************************************************************/
- /* メンバ関数の宣言 */
- /*****************************************************************************/
- int WWPalette_GetNumber(WWPalette p);
- int WWPalette_SetNumber(WWPalette p, int n);
- /*
- * WonX-2.0 以降から,透明色の判定は WWDisplay で行うように変更したので,
- * WWPalette で透明色を管理する必要は無くなった.一応コードを残しておく.
- */
- #if 0
- int WWPalette_GetTransparent(WWPalette palette);
- int WWPalette_SetTransparent(WWPalette palette, int f);
- #endif
- int WWPalette_GetRed( WWPalette p, int n);
- int WWPalette_GetGreen(WWPalette p, int n);
- int WWPalette_GetBlue( WWPalette p, int n);
- int WWPalette_SetRed( WWPalette p, int n, int value);
- int WWPalette_SetGreen(WWPalette p, int n, int value);
- int WWPalette_SetBlue( WWPalette p, int n, int value);
- /*
- * WonX-2.0 以降から,透明色の判定は WWDisplay で行うように変更したので,
- * WWPalette で透明色を管理する必要は無くなった.一応コードを残しておく.
- */
- #if 1
- WWPalette WWPalette_Create(int number, int * mapped_colors);
- #else
- WWPalette WWPalette_Create(int number, int * mapped_colors, int transparent);
- #endif
- 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);
- int WWPalette_PrintData(WWPalette p, WWDisplay display, FILE * f);
- /*****************************************************************************/
- /* ここまで */
- /*****************************************************************************/
- #endif
- /*****************************************************************************/
- /* End of File. */
- /*****************************************************************************/
|