2008-12-02 10:44:39 +00:00
|
|
|
#ifndef HIGHTILE_PRIV_H
|
|
|
|
#define HIGHTILE_PRIV_H
|
|
|
|
|
2020-01-11 21:18:06 +00:00
|
|
|
#include "palentry.h"
|
|
|
|
|
2017-06-21 13:46:44 +00:00
|
|
|
typedef struct {
|
|
|
|
polytintflags_t f;
|
2020-01-11 21:18:06 +00:00
|
|
|
PalEntry tint;
|
|
|
|
PalEntry shade;
|
2017-06-21 13:46:44 +00:00
|
|
|
} polytint_t;
|
|
|
|
|
|
|
|
extern polytint_t hictinting[MAXPALOOKUPS];
|
2014-05-28 22:40:16 +00:00
|
|
|
|
|
|
|
|
2019-10-17 10:45:25 +00:00
|
|
|
// replacement flags
|
2014-05-28 22:40:16 +00:00
|
|
|
enum
|
|
|
|
{
|
2015-03-28 09:49:37 +00:00
|
|
|
HICR_FORCEFILTER = 2,
|
2014-05-28 22:40:16 +00:00
|
|
|
};
|
|
|
|
|
2016-03-04 19:24:54 +00:00
|
|
|
// hictinting[].f / gloadtile_hi() and mdloadskin() <effect> arg bits
|
2014-05-28 22:40:16 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
HICTINT_GRAYSCALE = 1,
|
|
|
|
HICTINT_INVERT = 2,
|
|
|
|
HICTINT_COLORIZE = 4,
|
|
|
|
HICTINT_USEONART = 8,
|
2015-03-09 20:32:11 +00:00
|
|
|
HICTINT_APPLYOVERPALSWAP = 16,
|
|
|
|
HICTINT_APPLYOVERALTPAL = 32,
|
2014-05-28 22:40:16 +00:00
|
|
|
|
2015-04-14 08:08:02 +00:00
|
|
|
HICTINT_BLEND_MULTIPLY = 0<<6,
|
|
|
|
HICTINT_BLEND_SCREEN = 1<<6,
|
|
|
|
HICTINT_BLEND_OVERLAY = 2<<6,
|
|
|
|
HICTINT_BLEND_HARDLIGHT = 3<<6,
|
|
|
|
|
|
|
|
HICTINT_BLENDMASK = 64|128,
|
2020-01-11 21:18:06 +00:00
|
|
|
HICTINT_ALWAYSUSEART = 256,
|
2015-04-14 08:08:02 +00:00
|
|
|
HICTINT_PRECOMPUTED = HICTINT_COLORIZE | HICTINT_BLENDMASK,
|
2014-05-28 22:40:16 +00:00
|
|
|
};
|
2008-12-02 10:44:39 +00:00
|
|
|
|
|
|
|
#endif
|