mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-03 05:30:56 +00:00
f4d9ad1123
Now it is no longer necessary to provide specially set up textures for rendering shaded decals, they can use any PNG texture now that contains a proper red channel. Handling of the alPh chunk has been removed as a result as it in no longer needed.
21 lines
1 KiB
C++
21 lines
1 KiB
C++
#pragma once
|
|
|
|
struct side_t;
|
|
class DBaseDecal;
|
|
|
|
namespace swrenderer
|
|
{
|
|
struct DrawSegment;
|
|
class ProjectedWallTexcoords;
|
|
class SpriteDrawerArgs;
|
|
|
|
class RenderDecal
|
|
{
|
|
public:
|
|
static void RenderDecals(RenderThread *thread, 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, bool drawsegPass);
|
|
|
|
private:
|
|
static void Render(RenderThread *thread, side_t *wall, DBaseDecal *first, DrawSegment *clipper, int wallshade, float lightleft, float lightstep, seg_t *curline, const FWallCoords &wallC, bool foggy, FDynamicColormap *basecolormap, const short *walltop, const short *wallbottom, bool drawsegPass);
|
|
static void DrawColumn(RenderThread *thread, SpriteDrawerArgs &drawerargs, int x, FTexture *WallSpriteTile, const ProjectedWallTexcoords &walltexcoords, double texturemid, float maskedScaleY, bool sprflipvert, const short *mfloorclip, const short *mceilingclip, FRenderStyle style);
|
|
};
|
|
}
|