Debian Codegraph @

prboom2/data/rd_palette.h

raw
1 // Copyright (c) 1993-2011 PrBoom developers (see AUTHORS)
2 // Licence: GPLv2 or later (see COPYING)
3
4 #ifndef RD_PALETTE_H
5 #define RD_PALETTE_H
6
7 // Chained hash lookup to convert rgb triples to palette indices
8
9 // load raw palette, create hash table etc.
10 void palette_init(const char *filename);
11
12 // lookup colour index of rgb triple
13 int palette_getindex(const unsigned char *rgb);
14
15 #endif /* RD_PALETTE_H */