2006-02-24 04:48:15 +00:00
|
|
|
// Emacs style mode select -*- C++ -*-
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// $Id:$
|
|
|
|
//
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
//
|
|
|
|
// This source is available for distribution and/or modification
|
|
|
|
// only under the terms of the DOOM Source Code License as
|
|
|
|
// published by id Software. All rights reserved.
|
|
|
|
//
|
|
|
|
// The source is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
// DESCRIPTION:
|
|
|
|
// Refresh module, drawing LineSegs from BSP.
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __R_SEGS_H__
|
|
|
|
#define __R_SEGS_H__
|
|
|
|
|
2008-09-15 14:11:05 +00:00
|
|
|
struct drawseg_t;
|
|
|
|
|
2006-02-24 04:48:15 +00:00
|
|
|
void R_RenderMaskedSegRange (drawseg_t *ds, int x1, int x2);
|
|
|
|
|
|
|
|
extern short *openings;
|
|
|
|
extern ptrdiff_t lastopening;
|
|
|
|
extern size_t maxopenings;
|
|
|
|
|
2014-08-01 01:23:04 +00:00
|
|
|
int OWallMost (short *mostbuf, fixed_t z, const FWallCoords *wallc);
|
|
|
|
int WallMost (short *mostbuf, const secplane_t &plane, const FWallCoords *wallc);
|
2014-08-03 03:35:57 +00:00
|
|
|
void PrepWall (fixed_t *swall, fixed_t *lwall, fixed_t walxrepeat, int x1, int x2);
|
|
|
|
void PrepLWall (fixed_t *lwall, fixed_t walxrepeat, int x1, int x2);
|
2014-08-01 01:23:04 +00:00
|
|
|
|
2011-01-29 11:09:38 +00:00
|
|
|
ptrdiff_t R_NewOpening (ptrdiff_t len);
|
|
|
|
|
2006-02-24 04:48:15 +00:00
|
|
|
void R_CheckDrawSegs ();
|
|
|
|
|
|
|
|
void R_RenderSegLoop ();
|
|
|
|
|
2014-08-03 03:35:57 +00:00
|
|
|
extern fixed_t swall[MAXWIDTH];
|
|
|
|
extern fixed_t lwall[MAXWIDTH];
|
|
|
|
extern fixed_t rw_light; // [RH] Scale lights with viewsize adjustments
|
|
|
|
extern fixed_t rw_lightstep;
|
|
|
|
extern fixed_t rw_lightleft;
|
|
|
|
extern fixed_t rw_offset;
|
|
|
|
|
2006-02-24 04:48:15 +00:00
|
|
|
#endif
|