XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
r_plane.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "i_system.h"
#include "z_zone.h"
#include "w_wad.h"
#include "doomdef.h"
#include "doomstat.h"
#include "r_local.h"
#include "r_sky.h"
Include dependency graph for r_plane.c:

Macros

#define MAXVISPLANES   128
 
#define MAXOPENINGS   SCREENWIDTH*64
 

Functions

void R_InitPlanes (void)
 
void R_MapPlane (int y, int x1, int x2)
 
void R_ClearPlanes (void)
 
visplane_t * R_FindPlane (fixed_t height, int picnum, int lightlevel)
 
visplane_t * R_CheckPlane (visplane_t *pl, int start, int stop)
 
void R_MakeSpans (int x, int t1, int b1, int t2, int b2)
 
void R_DrawPlanes (void)
 

Variables

planefunction_t floorfunc
 
planefunction_t ceilingfunc
 
visplane_t visplanes [MAXVISPLANES]
 
visplane_t * lastvisplane
 
visplane_t * floorplane
 
visplane_t * ceilingplane
 
short openings [MAXOPENINGS]
 
short * lastopening
 
short floorclip [SCREENWIDTH]
 
short ceilingclip [SCREENWIDTH]
 
int spanstart [SCREENHEIGHT]
 
int spanstop [SCREENHEIGHT]
 
lighttable_t ** planezlight
 
fixed_t planeheight
 
fixed_t yslope [SCREENHEIGHT]
 
fixed_t distscale [SCREENWIDTH]
 
fixed_t basexscale
 
fixed_t baseyscale
 
fixed_t cachedheight [SCREENHEIGHT]
 
fixed_t cacheddistance [SCREENHEIGHT]
 
fixed_t cachedxstep [SCREENHEIGHT]
 
fixed_t cachedystep [SCREENHEIGHT]
 

Macro Definition Documentation

◆ MAXOPENINGS

#define MAXOPENINGS   SCREENWIDTH*64

◆ MAXVISPLANES

#define MAXVISPLANES   128

Function Documentation

◆ R_CheckPlane()

visplane_t * R_CheckPlane ( visplane_t *  pl,
int  start,
int  stop 
)

◆ R_ClearPlanes()

void R_ClearPlanes ( void  )

◆ R_DrawPlanes()

void R_DrawPlanes ( void  )

◆ R_FindPlane()

visplane_t * R_FindPlane ( fixed_t  height,
int  picnum,
int  lightlevel 
)

◆ R_InitPlanes()

void R_InitPlanes ( void  )

◆ R_MakeSpans()

void R_MakeSpans ( int  x,
int  t1,
int  b1,
int  t2,
int  b2 
)

◆ R_MapPlane()

void R_MapPlane ( int  y,
int  x1,
int  x2 
)

Variable Documentation

◆ basexscale

fixed_t basexscale

◆ baseyscale

fixed_t baseyscale

◆ cacheddistance

fixed_t cacheddistance[SCREENHEIGHT]

◆ cachedheight

fixed_t cachedheight[SCREENHEIGHT]

◆ cachedxstep

fixed_t cachedxstep[SCREENHEIGHT]

◆ cachedystep

fixed_t cachedystep[SCREENHEIGHT]

◆ ceilingclip

short ceilingclip[SCREENWIDTH]

◆ ceilingfunc

planefunction_t ceilingfunc

◆ ceilingplane

visplane_t* ceilingplane

◆ distscale

fixed_t distscale[SCREENWIDTH]

◆ floorclip

short floorclip[SCREENWIDTH]

◆ floorfunc

planefunction_t floorfunc

◆ floorplane

visplane_t* floorplane

◆ lastopening

short* lastopening

◆ lastvisplane

visplane_t* lastvisplane

◆ openings

short openings[MAXOPENINGS]

◆ planeheight

fixed_t planeheight

◆ planezlight

lighttable_t** planezlight

◆ spanstart

int spanstart[SCREENHEIGHT]

◆ spanstop

int spanstop[SCREENHEIGHT]

◆ visplanes

◆ yslope