|
|
| version 1.7, 2004/08/17 12:30:41 | version 1.8, 2004/08/17 14:46:37 |
|---|---|
| Line 1 | Line 1 |
| #define SUPPORT_PALEVENT 1024 | |
| #if !defined(SUPPORT_TURBOZ) | #if !defined(SUPPORT_TURBOZ) |
| enum { | enum { |
| XMILPAL_USE = 64 + 64, | XMILPAL_USE = 64 + 64, |
| Line 13 enum { | Line 15 enum { |
| }; | }; |
| #endif | #endif |
| #if defined(SUPPORT_PALEVENT) | |
| typedef struct { | |
| UINT8 rgbp; | |
| UINT8 value; | |
| UINT8 reserve[2]; | |
| SINT32 clock; | |
| } PAL1EVENT; | |
| typedef struct { | |
| UINT8 rgbp[8]; | |
| UINT events; | |
| PAL1EVENT event[SUPPORT_PALEVENT]; | |
| } PALEVENT; | |
| #endif | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| extern UINT xmil_palettes; | extern UINT xmil_palettes; |
| extern RGB32 xmil_pal32[XMILPAL_MAX]; // xm_palette | extern RGB32 xmil_pal32[XMILPAL_MAX]; // xm_palette |
| #if defined(SUPPORT_16BPP) | #if defined(SUPPORT_16BPP) |
| extern RGB16 xmil_pal16[XMILPAL_MAX]; // xmil_pal16 | extern RGB16 xmil_pal16[XMILPAL_MAX]; |
| #endif | |
| #if defined(SUPPORT_PALEVENT) | |
| extern PALEVENT palevent; | |
| #endif | #endif |
| void pal_makegrad(RGB32 *pal, int pals, UINT32 bg, UINT32 fg); | void pal_makegrad(RGB32 *pal, int pals, UINT32 bg, UINT32 fg); |
| Line 35 void pal_setgrph4096(UINT num); // | Line 56 void pal_setgrph4096(UINT num); // |
| void pal_update1(const UINT8 *rgbp); | void pal_update1(const UINT8 *rgbp); |
| void pal_update(void); | void pal_update(void); |
| #if defined(SUPPORT_PALEVENT) | |
| void pal_eventclear(void); | |
| #else | |
| #define pal_eventclear() | |
| #endif | |
| void pal_reset(void); | void pal_reset(void); |
| #ifdef __cplusplus | #ifdef __cplusplus |