comparison tools/lib64gfx.h @ 2200:dcd26cdc395e

Replace dmC64InitializeFormats() with dmLib64GFXInit() and dmLib64GFXClose(). Add in sorting of the C64 formats list.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Jun 2019 00:00:27 +0300
parents 28871f500e84
children 9f3fb4004c20
comparison
equal deleted inserted replaced
2199:f331cc750b37 2200:dcd26cdc395e
337 // 337 //
338 extern DMC64Palette dmC64DefaultPalettes[]; 338 extern DMC64Palette dmC64DefaultPalettes[];
339 extern const int ndmC64DefaultPalettes; 339 extern const int ndmC64DefaultPalettes;
340 extern DMC64ImageFormat dmC64ImageFormats[]; 340 extern DMC64ImageFormat dmC64ImageFormats[];
341 extern const int ndmC64ImageFormats; 341 extern const int ndmC64ImageFormats;
342 extern DMC64ImageFormat **dmC64ImageFormatsSorted;
343
344
345 //
346 // Library init/close
347 //
348 int dmLib64GFXInit(void);
349 void dmLib64GFXClose(void);
342 350
343 351
344 // 352 //
345 // Miscellaneous functions 353 // Miscellaneous functions
346 // 354 //
347 void dmC64InitializeFormats(void);
348 int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt); 355 int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt);
349 356
350 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng); 357 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
351 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent); 358 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent);
352 359