comparison libgfx.h @ 487:b89598501cec

Move dmCompareColor() to libgfx.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 12 Nov 2012 17:21:33 +0200
parents ab401a5087f9
children d400e32b62d9
comparison
equal deleted inserted replaced
486:cb61c44f7846 487:b89598501cec
88 DMImage * dmImageAlloc(int width, int height); 88 DMImage * dmImageAlloc(int width, int height);
89 void dmImageFree(DMImage *img); 89 void dmImageFree(DMImage *img);
90 int dmImageGetBytesPerPixel(int format); 90 int dmImageGetBytesPerPixel(int format);
91 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, DMImageFormat **fmt, int *index); 91 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, DMImageFormat **fmt, int *index);
92 92
93 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, BOOL alpha);
94
93 95
94 int dmWriteImageData(DMImage *img, void *cbdata, BOOL (*writeRowCB)(void *, Uint8 *, size_t), const DMImageSpec *spec); 96 int dmWriteImageData(DMImage *img, void *cbdata, BOOL (*writeRowCB)(void *, Uint8 *, size_t), const DMImageSpec *spec);
95 97
96 int dmWriteIFFMasterRAWPalette(FILE *fp, DMImage *img, int ncolors, const char *indent, const char *type); 98 int dmWriteIFFMasterRAWPalette(FILE *fp, DMImage *img, int ncolors, const char *indent, const char *type);
97 int dmWriteIFFMasterRAWImageFILE(FILE *fp, DMImage *img, DMImageSpec *spec); 99 int dmWriteIFFMasterRAWImageFILE(FILE *fp, DMImage *img, DMImageSpec *spec);