prboom/data/rd_palette.h
2024-09-08 18:03:02 +12:00

10 lines
338 B
C

// Copyright (c) 1993-2011 PrBoom developers (see AUTHORS)
// Licence: GPLv2 or later (see COPYING)
// Chained hash lookup to convert rgb triples to palette indices
// load raw palette, create hash table etc.
void palette_init(const char *filename);
// lookup colour index of rgb triple
int palette_getindex(const unsigned char *rgb);