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

27 lines
906 B
C
Raw Normal View History

#pragma once
2016-12-31 11:45:07 +00:00
#include "r_visiblesprite.h"
namespace swrenderer
{
class ProjectedWallTexcoords;
class SpriteDrawerArgs;
class RenderWallSprite : public VisibleSprite
2017-01-11 17:28:19 +00:00
{
public:
static void Project(RenderThread *thread, AActor *thing, const DVector3 &pos, FTexture *pic, const DVector2 &scale, int renderflags, int spriteshade, bool foggy, FDynamicColormap *basecolormap);
protected:
bool IsWallSprite() const override { return true; }
void Render(RenderThread *thread, short *cliptop, short *clipbottom, int minZ, int maxZ) override;
2017-01-11 17:28:19 +00:00
private:
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);
FWallCoords wallc;
uint32_t Translation = 0;
uint32_t FillColor = 0;
2017-01-11 17:28:19 +00:00
};
}