comparison tools/lib64gfx.h @ 1732:07111a60cd4e

Add dmSetMixedColorC64Palette() for setting a 256 entry "mixed color" palette, which consists of averaged 16 x 16 matrix of C64 palette. This can be used for rendering images that use color interlace.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 08 Jun 2018 22:09:00 +0300
parents f9128665a47e
children 52e31cfc1e36
comparison
equal deleted inserted replaced
1731:474055f25ab0 1732:07111a60cd4e
282 // 282 //
283 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng); 283 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
284 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt); 284 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt);
285 285
286 void dmSetDefaultC64Palette(DMImage *img); 286 void dmSetDefaultC64Palette(DMImage *img);
287 BOOL dmSetMixedColorC64Palette(DMImage *img);
288
287 BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr); 289 BOOL dmCompareAddr16(const Uint8 *buf, const size_t offs, const Uint16 addr);
288 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt); 290 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt);
289 291
290 // C64 bitmap image allocation/freeing 292 // C64 bitmap image allocation/freeing
291 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); 293 int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size);