Subversion Repositories eduke32

Rev

Rev 5376 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5359 hendricks2 1
 
2
#include "compat.h"
3
 
4
#ifdef __cplusplus
5
extern "C" {
6
#endif
7
 
8
extern void initfastcolorlookup_scale(int32_t rscale, int32_t gscale, int32_t bscale);
9
extern void initfastcolorlookup_palette(uint8_t const * pal) ATTRIBUTE((nonnull(1)));
10
extern void initfastcolorlookup_gridvectors(void);
11
 
12
extern int32_t getclosestcol_lim(int32_t r, int32_t g, int32_t b, int32_t lastokcol);
13
extern void getclosestcol_flush(void);
14
 
15
FORCE_INLINE int32_t getclosestcol(int32_t r, int32_t g, int32_t b)
16
{
17
    return getclosestcol_lim(r, g, b, 255);
18
}
19
 
20
#ifdef __cplusplus
21
}
22
#endif