shithub: qk1

ref: a2c587e7d7a8b72a7ef9afcd119d8cfb20076b54
dir: /colormatrix.h/

View raw version
#define CM(v) ((v)*(1<<12))

extern s16int cm[4*4];
extern cvar_t v_saturation;
extern cvar_t v_contrast;
extern cvar_t v_brightness;

void cmsetvblend(float blend[4]);
void cmprocess(s16int cm[4*4], void *in, void *out, int n);
void cminit(void);