2017-01-09 12:53:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "r_visiblesprite.h"
|
|
|
|
|
|
|
|
namespace swrenderer
|
|
|
|
{
|
2017-01-16 04:26:22 +00:00
|
|
|
class RenderSprite : public VisibleSprite
|
2017-01-11 17:17:28 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-02-03 23:25:37 +00:00
|
|
|
static void Project(RenderThread *thread, AActor *thing, const DVector3 &pos, FTexture *tex, const DVector2 &spriteScale, int renderflags, WaterFakeSide fakeside, F3DFloor *fakefloor, F3DFloor *fakeceiling, sector_t *current_sector, int spriteshade, bool foggy, FDynamicColormap *basecolormap);
|
2017-01-16 04:26:22 +00:00
|
|
|
|
2017-01-16 04:43:56 +00:00
|
|
|
protected:
|
2017-02-03 23:25:37 +00:00
|
|
|
void Render(RenderThread *thread, short *cliptop, short *clipbottom, int minZ, int maxZ) override;
|
2017-01-16 04:26:22 +00:00
|
|
|
|
|
|
|
private:
|
2017-01-24 01:28:32 +00:00
|
|
|
fixed_t xscale = 0;
|
|
|
|
fixed_t startfrac = 0; // horizontal position of x1
|
|
|
|
fixed_t xiscale = 0; // negative if flipped
|
2017-01-16 04:26:22 +00:00
|
|
|
|
2017-01-24 01:28:32 +00:00
|
|
|
uint32_t Translation = 0;
|
|
|
|
uint32_t FillColor = 0;
|
2017-02-14 05:37:06 +00:00
|
|
|
|
|
|
|
uint32_t dynlightcolor = 0;
|
2017-01-11 17:17:28 +00:00
|
|
|
};
|
2017-01-09 12:53:02 +00:00
|
|
|
}
|