-
Notifications
You must be signed in to change notification settings - Fork 0
/
r_main.h
50 lines (45 loc) · 1.43 KB
/
r_main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __R_MAIN__
#define __R_MAIN__
#include "d_player.h"
#include "r_data.h"
#define LIGHTLEVELS 16
#define LIGHTSEGSHIFT 4
#define MAXLIGHTSCALE 48
#define LIGHTSCALESHIFT 12
#define MAXLIGHTZ 128
#define LIGHTZSHIFT 20
#define NUMCOLORMAPS 32
extern int skytexture;
extern int skytexturemid;
extern int viewcos;
extern int viewsin;
extern int viewwidth;
extern int viewheight;
extern int viewwindowx;
extern int viewwindowy;
extern int centerx;
extern int centery;
extern int centerxfrac;
extern int centeryfrac;
extern int viewheightfrac;
extern int projection;
extern int projectiony;
extern int validcount;
extern int rendered_visplanes, rendered_segs, rendered_vissprites;
extern boolean rendering_stats;
extern const lighttable_t *(*zlight)[MAXLIGHTZ];
extern const lighttable_t *fullcolormap;
extern int numcolormaps;
extern const lighttable_t **colormaps;
extern int extralight;
extern const lighttable_t *fixedcolormap;
void R_InitSkyMap(void);
void R_InterpolateView(player_t *player, int frac);
int R_PointOnSide(int x, int y, const node_t *node);
int R_PointOnSegSide(int x, int y, const seg_t *line);
angle_t R_PointToAngle(int x, int y);
angle_t R_PointToAngle2(int x1, int y1, int x2, int y2);
subsector_t *R_PointInSubsector(int x, int y);
void R_RenderPlayerView(player_t *player);
void R_Init(void);
#endif