2016-12-30 07:11:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-12-31 11:45:07 +00:00
|
|
|
#include "r_visiblesprite.h"
|
2016-12-30 07:11:06 +00:00
|
|
|
|
|
|
|
namespace swrenderer
|
|
|
|
{
|
2017-01-24 06:06:47 +00:00
|
|
|
class ProjectedWallTexcoords;
|
2017-01-30 10:27:58 +00:00
|
|
|
class SpriteDrawerArgs;
|
2017-01-24 06:06:47 +00:00
|
|
|
|
2017-01-16 04:26:22 +00:00
|
|
|
class RenderWallSprite : public VisibleSprite
|
2017-01-11 17:28:19 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-05-23 07:37:38 +00:00
|
|
|
static void Project(RenderThread *thread, AActor *thing, const DVector3 &pos, FTexture *pic, const DVector2 &scale, int renderflags, int spriteshade, bool foggy, FDynamicColormap *basecolormap);
|
2017-01-16 04:26:22 +00:00
|
|
|
|
2017-01-16 04:43:56 +00:00
|
|
|
protected:
|
2017-01-16 04:26:22 +00:00
|
|
|
bool IsWallSprite() const override { return true; }
|
2018-03-08 03:05:35 +00:00
|
|
|
void Render(RenderThread *thread, short *cliptop, short *clipbottom, int minZ, int maxZ, Fake3DTranslucent clip3DFloor) override;
|
2017-01-11 17:28:19 +00:00
|
|
|
|
|
|
|
private:
|
2017-02-04 11:38:05 +00:00
|
|
|
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);
|
2017-01-16 04:26:22 +00:00
|
|
|
|
|
|
|
FWallCoords wallc;
|
2017-01-24 01:28:32 +00:00
|
|
|
uint32_t Translation = 0;
|
|
|
|
uint32_t FillColor = 0;
|
2017-01-11 17:28:19 +00:00
|
|
|
};
|
2016-12-30 07:11:06 +00:00
|
|
|
}
|