XenevaOS
Loading...
Searching...
No Matches
r_plane.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION:
16// Refresh, visplane stuff (floor, ceilings).
17//
18
19
20#ifndef __R_PLANE__
21#define __R_PLANE__
22
23
24#include "r_data.h"
25
26
27
28// Visplane related.
29extern short* lastopening;
30
31
32typedef void (*planefunction_t) (int top, int bottom);
33
36
37extern short floorclip[SCREENWIDTH];
38extern short ceilingclip[SCREENWIDTH];
39
42
43void R_InitPlanes (void);
44void R_ClearPlanes (void);
45
46void
48( int y,
49 int x1,
50 int x2 );
51
52void
54( int x,
55 int t1,
56 int b1,
57 int t2,
58 int b2 );
59
60void R_DrawPlanes (void);
61
64( fixed_t height,
65 int picnum,
66 int lightlevel );
67
70( visplane_t* pl,
71 int start,
72 int stop );
73
74
75
76#endif
#define SCREENWIDTH
Definition i_video.h:27
#define SCREENHEIGHT
Definition i_video.h:28
int fixed_t
Definition m_fixed.h:32
@ top
Definition p_spec.h:217
@ bottom
Definition p_spec.h:219
void R_DrawPlanes(void)
Definition r_plane.c:360
void(* planefunction_t)(int top, int bottom)
Definition r_plane.h:32
planefunction_t floorfunc
Definition r_plane.c:37
planefunction_t ceilingfunc_t
short floorclip[SCREENWIDTH]
Definition r_plane.c:62
fixed_t distscale[SCREENWIDTH]
Definition r_plane.c:79
visplane_t * R_FindPlane(fixed_t height, int picnum, int lightlevel)
Definition r_plane.c:212
void R_ClearPlanes(void)
Definition r_plane.c:178
visplane_t * R_CheckPlane(visplane_t *pl, int start, int stop)
Definition r_plane.c:260
short ceilingclip[SCREENWIDTH]
Definition r_plane.c:63
void R_MapPlane(int y, int x1, int x2)
Definition r_plane.c:115
void R_MakeSpans(int x, int t1, int b1, int t2, int b2)
Definition r_plane.c:325
fixed_t yslope[SCREENHEIGHT]
Definition r_plane.c:78
void R_InitPlanes(void)
Definition r_plane.c:94
short * lastopening
Definition r_plane.c:54
Definition r_defs.h:424