Since there is a possibility that the Error () function will collide with libwonx.a when linking, It changed to Wonx_Error (). Added bios_exit (). sprite_set_char, sprite_get_char, palette number minus 8 Fixed bug that was not specified. font_set_monodata (), font_set_colordata (), font_get_data (), disp.c, The arguments of screen_set_char (), screen_get_char (), sprite_set_data () Changed from void * to appropriate type. Sample program and attached SpeedMac. I added a document. Version 0.3 beta - from wonx-b03.tar.gz
66 lines
2.6 KiB
C
66 lines
2.6 KiB
C
#ifndef _WWTimer_h_INCLUDED_
|
|
#define _WWTimer_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "wonx_include/timer.h"
|
|
|
|
/*****************************************************************************/
|
|
/* クラスの定義 */
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _WWTimer * WWTimer;
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の宣言 */
|
|
/*****************************************************************************/
|
|
|
|
int WWTimer_ON(WWTimer ww_timer);
|
|
int WWTimer_OFF(WWTimer ww_timer);
|
|
int WWTimer_IsON(WWTimer ww_timer);
|
|
int WWTimer_IsOFF(WWTimer ww_timer);
|
|
|
|
int WWTimer_GetAutoPreset(WWTimer ww_timer);
|
|
int WWTimer_GetPresetCounter(WWTimer ww_timer);
|
|
int WWTimer_GetCounter(WWTimer ww_timer);
|
|
|
|
int WWTimer_IsAutoPresetOFF(WWTimer ww_timer);
|
|
int WWTimer_IsAutoPresetON(WWTimer ww_timer);
|
|
|
|
int WWTimer_SetAutoPreset(WWTimer ww_timer, int auto_preset);
|
|
int WWTimer_SetPresetCounter(WWTimer ww_timer, int preset_counter);
|
|
int WWTimer_SetCounter(WWTimer ww_timer, int counter);
|
|
|
|
int WWTimer_SetAutoPresetOFF(WWTimer ww_timer);
|
|
int WWTimer_SetAutoPresetON(WWTimer ww_timer);
|
|
|
|
int WWTimer_Reset(WWTimer ww_timer);
|
|
int WWTimer_Count(WWTimer ww_timer);
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
/* オブジェクトの作成 */
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
WWTimer WWTimer_Create(int auto_preset, int preset);
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
/* オブジェクトの削除 */
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
WWTimer WWTimer_Destroy(WWTimer ww_timer);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|