mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-11 13:21:49 +00:00
21b4862460
* music system improvements * Zip64 support * fixes for menu scaling on ultrawide screens * Mac default paths fixed * lightmap code (not active yet)
38 lines
804 B
C++
Executable file
38 lines
804 B
C++
Executable file
#ifndef __F_WIPE_H__
|
|
#define __F_WIPE_H__
|
|
|
|
#include "stdint.h"
|
|
#include <functional>
|
|
|
|
class FTexture;
|
|
int wipe_CalcBurn(uint8_t *buffer, int width, int height, int density);
|
|
|
|
enum
|
|
{
|
|
wipe_None, // don't bother
|
|
wipe_Melt, // weird screen melt
|
|
wipe_Burn, // fade in shape of fire
|
|
wipe_Fade, // crossfade from old to new
|
|
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);
|
|
|
|
|
|
#endif
|