Changed method of storing WWLCDPanel data. (I made 1 byte allocated with 1 pixel as 1 byte with 2 pixels) (For speeding up, thought about future color correspondence (241 colors?)) Added WonxDisplay_Sync (). Reduced wasteful drawing in functions of get type. Implement sprite window function. (Not tested) Implement time related functions. (timer.c) Fix sprite priority. (I modified "Priority is given to younger one") Version 0.0.4 alpha - from wonx-a04.tar.gz
101 lines
4.3 KiB
C
101 lines
4.3 KiB
C
#ifndef _WWDisplay_h_INCLUDED_
|
|
#define _WWDisplay_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include "WWColorMap.h"
|
|
#include "WWPalette.h"
|
|
#include "WWCharacter.h"
|
|
#include "WWSprite.h"
|
|
#include "WWScreen.h"
|
|
#include "WWLCDPanel.h"
|
|
|
|
/*****************************************************************************/
|
|
/* クラスの定義 */
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _WWDisplay * WWDisplay;
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の定義 */
|
|
/*****************************************************************************/
|
|
|
|
/*===========================================================================*/
|
|
/* メンバの取得 */
|
|
/*===========================================================================*/
|
|
|
|
WWColorMap WWDisplay_GetColorMap(WWDisplay d);
|
|
WWPalette WWDisplay_GetPalette(WWDisplay d, int n);
|
|
WWCharacter WWDisplay_GetCharacter(WWDisplay d, int n);
|
|
WWSprite WWDisplay_GetSprite(WWDisplay d, int n);
|
|
WWScreen WWDisplay_GetScreen(WWDisplay d, int n);
|
|
WWLCDPanel WWDisplay_GetLCDPanel(WWDisplay d);
|
|
int WWDisplay_GetSpriteEnable(WWDisplay d);
|
|
int WWDisplay_GetSpriteWindowEnable(WWDisplay d);
|
|
|
|
int WWDisplay_GetSpriteWindowX(WWDisplay d);
|
|
int WWDisplay_GetSpriteWindowY(WWDisplay d);
|
|
int WWDisplay_GetSpriteWindowWidth(WWDisplay d);
|
|
int WWDisplay_GetSpriteWindowHeight(WWDisplay d);
|
|
|
|
int WWDisplay_GetBorder(WWDisplay d);
|
|
|
|
int WWDisplay_GetForegroundColor(WWDisplay d);
|
|
int WWDisplay_GetBackgroundColor(WWDisplay d);
|
|
|
|
int WWDisplay_GetSpriteStart(WWDisplay d);
|
|
int WWDisplay_GetSpriteCount(WWDisplay d);
|
|
|
|
/*===========================================================================*/
|
|
/* メンバの設定 */
|
|
/*===========================================================================*/
|
|
|
|
WWColorMap WWDisplay_SetColorMap(WWDisplay d, WWColorMap cm);
|
|
WWPalette WWDisplay_SetPalette(WWDisplay d, int n, WWPalette p);
|
|
WWCharacter WWDisplay_SetCharacter(WWDisplay d, int n, WWCharacter c);
|
|
WWSprite WWDisplay_SetSprite(WWDisplay d, int n, WWSprite s);
|
|
WWScreen WWDisplay_SetScreen(WWDisplay d, int n, WWScreen s);
|
|
WWLCDPanel WWDisplay_SetLCDPanel(WWDisplay d, WWLCDPanel p);
|
|
|
|
int WWDisplay_SetSpriteEnable(WWDisplay d, int f);
|
|
int WWDisplay_SetSpriteWindowEnable(WWDisplay d, int f);
|
|
|
|
int WWDisplay_SetSpriteWindowX(WWDisplay d, int n);
|
|
int WWDisplay_SetSpriteWindowY(WWDisplay d, int n);
|
|
int WWDisplay_SetSpriteWindowWidth(WWDisplay d, int n);
|
|
int WWDisplay_SetSpriteWindowHeight(WWDisplay d, int n);
|
|
|
|
int WWDisplay_SetBorder(WWDisplay d, int b);
|
|
|
|
int WWDisplay_SetForegroundColor(WWDisplay d, int c);
|
|
int WWDisplay_SetBackgroundColor(WWDisplay d, int c);
|
|
|
|
int WWDisplay_SetSpriteStart(WWDisplay d, int n);
|
|
int WWDisplay_SetSpriteCount(WWDisplay d, int n);
|
|
|
|
/*===========================================================================*/
|
|
/* オブジェクトの生成と消去 */
|
|
/*===========================================================================*/
|
|
|
|
WWDisplay WWDisplay_Create(int lcd_panel_width, int lcd_panel_height,
|
|
int screen_width, int screen_height);
|
|
WWDisplay WWDisplay_Destroy(WWDisplay display);
|
|
|
|
/*===========================================================================*/
|
|
/* LCDパネルの描画 */
|
|
/*===========================================================================*/
|
|
|
|
int WWDisplay_DrawLCDPanel(WWDisplay display);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|