2017-01-03 06:17:54 +00:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
2016-12-30 07:31:02 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct side_t;
|
|
|
|
class DBaseDecal;
|
|
|
|
|
|
|
|
namespace swrenderer
|
|
|
|
{
|
|
|
|
struct drawseg_t;
|
2017-01-24 06:06:47 +00:00
|
|
|
class ProjectedWallTexcoords;
|
2016-12-30 07:31:02 +00:00
|
|
|
|
2017-01-11 17:10:51 +00:00
|
|
|
class RenderDecal
|
|
|
|
{
|
|
|
|
public:
|
2017-01-24 06:06:47 +00:00
|
|
|
static void RenderDecals(side_t *wall, drawseg_t *draw_segment, int wallshade, float lightleft, float lightstep, seg_t *curline, const FWallCoords &wallC, bool foggy, FDynamicColormap *basecolormap, const short *walltop, const short *wallbottom);
|
2017-01-11 17:10:51 +00:00
|
|
|
|
|
|
|
private:
|
2017-01-24 06:06:47 +00:00
|
|
|
static void Render(side_t *wall, DBaseDecal *first, drawseg_t *clipper, int wallshade, float lightleft, float lightstep, seg_t *curline, FWallCoords wallC, bool foggy, FDynamicColormap *basecolormap, const short *walltop, const short *wallbottom, int pass);
|
|
|
|
static void DrawColumn(int x, FTexture *WallSpriteTile, const ProjectedWallTexcoords &walltexcoords, double texturemid, float maskedScaleY, bool sprflipvert, const short *mfloorclip, const short *mceilingclip);
|
2017-01-11 17:10:51 +00:00
|
|
|
};
|
2016-12-30 07:31:02 +00:00
|
|
|
}
|