|
|
| version 1.7, 2004/04/08 13:51:52 | version 1.8, 2004/04/09 10:52:20 |
|---|---|
| Line 2 | Line 2 |
| #ifndef __CMNDRAW | #ifndef __CMNDRAW |
| #define __CMNDRAW | #define __CMNDRAW |
| struct _cmnpalfn { | |
| BYTE (*get8)(struct _cmnpalfn *fn, UINT num); | |
| UINT32 (*get32)(struct _cmnpalfn *fn, UINT num); | |
| UINT16 (*cnv16)(struct _cmnpalfn *fn, RGB32 pal32); | |
| long userdata; | |
| }; | |
| typedef struct _cmnpalfn CMNPALFN; | |
| typedef struct { | |
| UINT8 pal8; | |
| UINT8 padding; | |
| UINT16 pal16; | |
| RGB32 pal32; | |
| } CMNPALS; | |
| typedef union { | typedef union { |
| RGB32 pal32; | RGB32 pal32; |
| UINT16 pal16; | UINT16 pal16; |
| Line 39 typedef void (*CMNPALCNV)(CMNPAL *dst, c | Line 23 typedef void (*CMNPALCNV)(CMNPAL *dst, c |
| extern "C" { | extern "C" { |
| #endif | #endif |
| void cmndraw_getpals(CMNPALFN *fn, CMNPALS *pal, UINT pals); | |
| void cmndraw_makegrad(RGB32 *pal, int pals, RGB32 bg, RGB32 fg); | void cmndraw_makegrad(RGB32 *pal, int pals, RGB32 bg, RGB32 fg); |
| void cmndraw_fill(const CMNVRAM *vram, int x, int y, | void cmndraw_fill(const CMNVRAM *vram, int x, int y, |