|
|
| version 1.1, 2003/10/16 17:58:51 | version 1.4, 2005/02/16 09:31:55 |
|---|---|
| Line 1 | Line 1 |
| #define DCLOCK_X 56 | |
| #define DCLOCK_Y 12 | |
| typedef struct { | enum { |
| BYTE dclock_flm[8]; | DCLOCK_WIDTH = 56, |
| BYTE dclock_now[8]; | DCLOCK_HEIGHT = 12, |
| BYTE dclock_bak[8]; | DCLOCK_YALIGN = (56 / 8) |
| WORD dclock_drawing; | }; |
| } DCLOCK_T; | |
| typedef struct { | typedef struct { |
| BYTE *dclock_pos; | UINT8 *pos; |
| WORD dclock_mask; | UINT16 mask; |
| BYTE dclock_rolbit; | UINT8 rolbit; |
| BYTE reserved; | UINT8 reserved; |
| } DCLOCK_POS; | } DCPOS; |
| typedef struct { | |
| const UINT8 *fnt; | |
| const DCPOS *pos; | |
| UINT8 flm[8]; | |
| UINT8 now[8]; | |
| UINT8 bak[8]; | |
| UINT16 drawing; | |
| UINT8 clk_x; | |
| UINT8 _padding; | |
| UINT8 dat[(DCLOCK_HEIGHT * DCLOCK_YALIGN) + 4]; | |
| } _DCLOCK, *DCLOCK; | |
| typedef struct { | typedef struct { |
| BYTE *dclock_fnt; | RGB32 pal32[4]; |
| DCLOCK_POS *dclock_put; | RGB16 pal16[4]; |
| void (*init)(void); | UINT32 pal8[4][16]; |
| } DCLOCK_FNT; | } DCLOCKPAL; |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| extern RGB32 dclock_pal[4]; | extern _DCLOCK dclock; |
| extern DCLOCKPAL dclockpal; | |
| void dclock_init(void); | void dclock_init(void); |
| void dclock_init8(void); | void dclock_palset(UINT bpp); |
| void dclock_init16(void); | |
| void dclock_reset(void); | void dclock_reset(void); |
| void dclock_callback(void); | void dclock_callback(void); |
| void dclock_redraw(void); | void dclock_redraw(void); |
| BOOL dclock_disp(void); | BOOL dclock_disp(void); |
| void __fastcall dclock_cntdown(BYTE value); | void dclock_cntdown(UINT8 value); |
| void dclock_make(void); | void dclock_make(void); |
| void __fastcall dclock_out8(void *ptr, DWORD width); | void dclock_out8(void *ptr, UINT yalign); |
| void __fastcall dclock_out16(void *ptr, DWORD width); | void dclock_out16(void *ptr, UINT yalign); |
| void dclock_out32(void *ptr, UINT yalign); | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |