mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
[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:
parent
3c86764eb2
commit
f21c2178fa
2 changed files with 13 additions and 16 deletions
|
@ -172,21 +172,6 @@ typedef struct {
|
||||||
struct mleaf_s *viewleaf;
|
struct mleaf_s *viewleaf;
|
||||||
} refdef_t;
|
} 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 ====================================================================
|
// REFRESH ====================================================================
|
||||||
|
|
||||||
extern struct texture_s *r_notexture_mip;
|
extern struct texture_s *r_notexture_mip;
|
||||||
|
|
|
@ -30,9 +30,21 @@
|
||||||
#define __client_view_h
|
#define __client_view_h
|
||||||
|
|
||||||
#include "QF/mathlib.h"
|
#include "QF/mathlib.h"
|
||||||
#include "QF/render.h"
|
|
||||||
#include "QF/simd/types.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_BONUS (1 << 0)
|
||||||
#define INFO_CSHIFT_CONTENTS (1 << 1)
|
#define INFO_CSHIFT_CONTENTS (1 << 1)
|
||||||
#define INFO_CSHIFT_DAMAGE (1 << 2)
|
#define INFO_CSHIFT_DAMAGE (1 << 2)
|
||||||
|
|
Loading…
Reference in a new issue