mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-15 15:11:32 +00:00
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
// 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__
|
|
|
|
namespace swrenderer
|
|
{
|
|
|
|
struct drawseg_t;
|
|
|
|
bool R_StoreWallRange(int start, int stop);
|
|
void R_RenderMaskedSegRange (drawseg_t *ds, int x1, int x2);
|
|
|
|
int R_CreateWallSegmentY (short *outbuf, double z1, double z2, const FWallCoords *wallc);
|
|
int R_CreateWallSegmentYSloped (short *outbuf, const secplane_t &plane, const FWallCoords *wallc);
|
|
inline int R_CreateWallSegmentY(short *outbuf, double z, const FWallCoords *wallc)
|
|
{
|
|
return R_CreateWallSegmentY(outbuf, z, z, wallc);
|
|
}
|
|
|
|
void PrepWall (float *swall, fixed_t *lwall, double walxrepeat, int x1, int x2);
|
|
void PrepLWall (fixed_t *lwall, double walxrepeat, int x1, int x2);
|
|
|
|
void R_RenderSegLoop ();
|
|
|
|
extern float swall[MAXWIDTH];
|
|
extern fixed_t lwall[MAXWIDTH];
|
|
extern float rw_light; // [RH] Scale lights with viewsize adjustments
|
|
extern float rw_lightstep;
|
|
extern float rw_lightleft;
|
|
extern fixed_t rw_offset;
|
|
|
|
}
|
|
|
|
#endif
|