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
39 lines
1.8 KiB
C
39 lines
1.8 KiB
C
#ifndef _WWCharacter_h_INCLUDED_
|
|
#define _WWCharacter_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/*****************************************************************************/
|
|
/* クラスの定義 */
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _WWCharacter * WWCharacter;
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の宣言 */
|
|
/*****************************************************************************/
|
|
|
|
int WWCharacter_GetNumber(WWCharacter c);
|
|
int WWCharacter_SetNumber(WWCharacter c, int n);
|
|
WWCharacter WWCharacter_Create(int number, unsigned char * bitmap);
|
|
WWCharacter WWCharacter_Destroy(WWCharacter character);
|
|
int WWCharacter_SetBitmap(WWCharacter character, unsigned char * bitmap);
|
|
int WWCharacter_GetPixel(WWCharacter character, int x, int y);
|
|
int WWCharacter_SetPixel(WWCharacter character, int x, int y, int pixel);
|
|
int WWCharacter_PrintData(WWCharacter character, FILE * f);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|