mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
1cc9d13ccf
Files moved but not modified. Changes to follow in a subsequent commit. You down with CPP? git-svn-id: https://svn.eduke32.com/eduke32@6055 1a8010ca-5511-0410-912e-c29ae57300e0
27 lines
784 B
C
27 lines
784 B
C
|
|
#include "compat.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern void initfastcolorlookup_scale(int32_t rscale, int32_t gscale, int32_t bscale);
|
|
extern void initfastcolorlookup_palette(uint8_t const * pal) ATTRIBUTE((nonnull(1)));
|
|
extern void initfastcolorlookup_gridvectors(void);
|
|
|
|
extern int32_t getclosestcol_lim(int32_t r, int32_t g, int32_t b, int32_t lastokcol);
|
|
extern int32_t getclosestcol_nocache_lim(int32_t r, int32_t g, int32_t b, int32_t lastokcol);
|
|
extern void getclosestcol_flush(void);
|
|
|
|
FORCE_INLINE int32_t getclosestcol(int32_t r, int32_t g, int32_t b)
|
|
{
|
|
return getclosestcol_lim(r, g, b, 255);
|
|
}
|
|
FORCE_INLINE int32_t getclosestcol_nocache(int32_t r, int32_t g, int32_t b)
|
|
{
|
|
return getclosestcol_nocache_lim(r, g, b, 255);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|