view tools/lib64util.h @ 2208:90ec1ec89c56

Revamp the palette handling in lib64gfx somewhat, add helper functions to lib64util for handling external palette file options and add support for specifying one of the "internal" palettes or external (.act) palette file to gfxconv and 64vw.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Jun 2019 05:01:12 +0300
parents cbac4912992c
children f808d3483d4b
line wrap: on
line source

/*
 * Common utility functions for gfxconv and 64vw
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2019 Tecnic Software productions (TNSP)
 *
 * Please read file 'COPYING' for information on license and distribution.
 */
#ifndef LIB64UTIL_H
#define LIB64UTIL_H 1

#include "lib64gfx.h"

#ifdef __cplusplus
extern "C" {
#endif


// Define default character ROM path
#ifndef DM_DEF_CHARGEN
#define DM_DEF_CHARGEN "/usr/local/lib64/vice/C64/chargen"
#endif




char *    dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
void      dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent);


BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile);
int dmHandleExternalPalette(const char *filename, DMPalette **ppal);


#ifdef __cplusplus
}
#endif

#endif // LIB64UTIL_H