In the explanation of screen 2 _ set _ window () of the manual, "width and height of the display area" Although it is written, in fact it operates with "horizontal width of display area + 1 and vertical width + 1" want to see? (Unconfirmed), do not you have to do -1? Or, in actual operation in WonderWitch, ex = sx + WWScreen_GetDrawWidth (screen); Not ex = WWScreen_GetDrawWidth (screen); It may be. Implemented sprite enable / disable. LCD color map, palette, character, sprite data dump function implemented. Improve display message when calling function. Version 0.0.3 alpha - from wonx-a03.tar.gz
42 lines
2.0 KiB
C
42 lines
2.0 KiB
C
#ifndef _WWPalette_h_INCLUDED_
|
|
#define _WWPalette_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#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);
|
|
int WWPalette_PrintData(WWPalette p, FILE * f);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|