Mercurial > hg > dmlib
diff 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 |
line wrap: on
line diff
--- a/libgfx.h Sun Nov 11 14:36:17 2012 +0200 +++ b/libgfx.h Mon Nov 12 17:21:33 2012 +0200 @@ -90,6 +90,8 @@ int dmImageGetBytesPerPixel(int format); int dmImageProbeGeneric(const Uint8 *buf, const size_t len, DMImageFormat **fmt, int *index); +BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, BOOL alpha); + int dmWriteImageData(DMImage *img, void *cbdata, BOOL (*writeRowCB)(void *, Uint8 *, size_t), const DMImageSpec *spec);