- moved some stuff from wipe.h to wipe.cpp.

This commit is contained in:
Christoph Oelckers 2022-10-02 19:26:23 +02:00
parent 207913bced
commit 00bb258d58
2 changed files with 17 additions and 17 deletions

View file

@ -156,6 +156,23 @@ int wipe_CalcBurn (uint8_t *burnarray, int width, int height, int density)
// TYPES -------------------------------------------------------------------
class Wiper
{
protected:
FGameTexture* startScreen = nullptr, * endScreen = nullptr;
public:
virtual ~Wiper();
virtual bool Run(int ticks) = 0;
virtual void SetTextures(FGameTexture* startscreen, FGameTexture* endscreen)
{
startScreen = startscreen;
endScreen = endscreen;
}
static Wiper* Create(int type);
};
class Wiper_Crossfade : public Wiper
{
public:

View file

@ -5,7 +5,6 @@
#include <functional>
class FTexture;
int wipe_CalcBurn(uint8_t *buffer, int width, int height, int density);
enum
{
@ -16,22 +15,6 @@ enum
wipe_NUMWIPES
};
class Wiper
{
protected:
FGameTexture *startScreen = nullptr, *endScreen = nullptr;
public:
virtual ~Wiper();
virtual bool Run(int ticks) = 0;
virtual void SetTextures(FGameTexture *startscreen, FGameTexture *endscreen)
{
startScreen = startscreen;
endScreen = endscreen;
}
static Wiper *Create(int type);
};
void PerformWipe(FTexture* startimg, FTexture* endimg, int wipe_type, bool stopsound, std::function<void()> overlaydrawer);