2016-03-01 15:47:10 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
2017-04-17 11:33:19 +00:00
|
|
|
// Copyright 1993-1996 id Software
|
2016-03-01 15:47:10 +00:00
|
|
|
//
|
2017-04-17 11:33:19 +00:00
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
2016-03-01 15:47:10 +00:00
|
|
|
//
|
2017-04-17 11:33:19 +00:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
2016-03-01 15:47:10 +00:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2017-04-17 11:33:19 +00:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program. If not, see http://www.gnu.org/licenses/
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
2016-03-01 15:47:10 +00:00
|
|
|
//
|
|
|
|
// DESCRIPTION:
|
|
|
|
// Mission start screen wipe/melt, special effects.
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __F_WIPE_H__
|
|
|
|
#define __F_WIPE_H__
|
|
|
|
|
2018-08-28 13:11:35 +00:00
|
|
|
#include "stdint.h"
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2018-08-28 13:11:35 +00:00
|
|
|
class FTexture;
|
2018-03-26 21:16:27 +00:00
|
|
|
int wipe_CalcBurn(uint8_t *buffer, int width, int height, int density);
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2018-08-28 13:11:35 +00:00
|
|
|
class Wiper
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
FTexture *startScreen = nullptr, *endScreen = nullptr;
|
|
|
|
public:
|
|
|
|
virtual ~Wiper();
|
|
|
|
virtual bool Run(int ticks) = 0;
|
|
|
|
virtual void SetTextures(FTexture *startscreen, FTexture *endscreen)
|
|
|
|
{
|
|
|
|
startScreen = startscreen;
|
|
|
|
endScreen = endscreen;
|
|
|
|
}
|
|
|
|
|
|
|
|
static Wiper *Create(int type);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-03-01 15:47:10 +00:00
|
|
|
#endif
|