[renderer] Move cshift defs into client

Definitely not something for the renderer to care about directly (ie, at
most, a post-process filter setting or palette update, which is how it
actually is currently).
This commit is contained in:
Bill Currie 2022-03-29 14:45:49 +09:00
parent 3c86764eb2
commit f21c2178fa
2 changed files with 13 additions and 16 deletions

View file

@ -172,21 +172,6 @@ typedef struct {
struct mleaf_s *viewleaf;
} refdef_t;
// color shifts =============================================================
typedef struct {
int destcolor[3];
int percent; // 0-255
double time;
int initialpct;
} cshift_t;
#define CSHIFT_CONTENTS 0
#define CSHIFT_DAMAGE 1
#define CSHIFT_BONUS 2
#define CSHIFT_POWERUP 3
#define NUM_CSHIFTS 4
// REFRESH ====================================================================
extern struct texture_s *r_notexture_mip;

View file

@ -30,9 +30,21 @@
#define __client_view_h
#include "QF/mathlib.h"
#include "QF/render.h"
#include "QF/simd/types.h"
typedef struct {
int destcolor[3];
int percent; // 0-255
double time;
int initialpct;
} cshift_t;
#define CSHIFT_CONTENTS 0
#define CSHIFT_DAMAGE 1
#define CSHIFT_BONUS 2
#define CSHIFT_POWERUP 3
#define NUM_CSHIFTS 4
#define INFO_CSHIFT_BONUS (1 << 0)
#define INFO_CSHIFT_CONTENTS (1 << 1)
#define INFO_CSHIFT_DAMAGE (1 << 2)