gzdoom-gles/src/swrenderer/things/r_decal.h

34 lines
1.3 KiB
C
Raw Normal View History

//
// 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
{
2017-01-26 06:03:27 +00:00
struct DrawSegment;
class ProjectedWallTexcoords;
2016-12-30 07:31:02 +00:00
2017-01-11 17:10:51 +00:00
class RenderDecal
{
public:
2017-01-26 06:03:27 +00:00
static void RenderDecals(side_t *wall, DrawSegment *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-26 06:03:27 +00:00
static void Render(side_t *wall, DBaseDecal *first, DrawSegment *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
}