comparison libgfx.h @ 460:0af039b6c0ae

Improve transparent color handling.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 04 Nov 2012 13:57:03 +0200
parents f7c9d1619c74
children ab401a5087f9
comparison
equal deleted inserted replaced
459:8ca18222db10 460:0af039b6c0ae
38 38
39 39
40 // RGBx color struct 40 // RGBx color struct
41 typedef struct 41 typedef struct
42 { 42 {
43 Uint8 r, g, b, x; 43 Uint8 r, g, b, a;
44 } DMColor; 44 } DMColor;
45 45
46 46
47 // Bitmapped image struct (can be one of types specified by DM_IFMT_*) 47 // Bitmapped image struct (can be one of types specified by DM_IFMT_*)
48 typedef struct 48 typedef struct
49 { 49 {
50 int width, height, pitch; 50 int width, height, pitch;
51 BOOL constpal; 51 BOOL constpal;
52 int ncolors, ctrans; 52 int ncolors, ctransp;
53 DMColor *pal; 53 DMColor *pal;
54 Uint8 *data; 54 Uint8 *data;
55 } DMImage; 55 } DMImage;
56 56
57 57