X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fsp65%2Fpalette.h;h=d7180e0f03379bb7c0a4f5e5cd36db8ec27f9d6d;hb=35e1184901ca38bdb2e56d154ed3b71f6096eacc;hp=c925f81c054deccf491db171e9b985221eeb37f6;hpb=364eb07a59e9622e1438860c7c8ffebdb896454c;p=cc65 diff --git a/src/sp65/palette.h b/src/sp65/palette.h index c925f81c0..d7180e0f0 100644 --- a/src/sp65/palette.h +++ b/src/sp65/palette.h @@ -38,6 +38,8 @@ +#include + /* sp65 */ #include "color.h" @@ -66,9 +68,18 @@ struct Palette { Palette* NewPalette (unsigned Entries); /* Create a new palette with the given number of entries */ +Palette* NewMonochromePalette (void); +/* Create and return a palette with two entries (black and white) */ + +Palette* DupPalette (const Palette* P); +/* Create a copy of a palette */ + void FreePalette (Palette* P); /* Free a dynamically allocated palette */ +void DumpPalette (FILE* F, const Palette* P); +/* Dump the palette in readable form to the given file */ + /* End of palette.h */