2019-05-30 11:35:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-26 23:16:31 +00:00
|
|
|
enum FxType
|
|
|
|
{
|
2020-12-16 20:53:47 +00:00
|
|
|
FXTYPE_WATER1,
|
|
|
|
FXTYPE_WATER2,
|
|
|
|
FXTYPE_BLOOD1,
|
|
|
|
FXTYPE_BLOOD2,
|
|
|
|
FXTYPE_HEATHAZE,
|
|
|
|
FXTYPE_SPLASH1,
|
|
|
|
FXTYPE_SPLASH2,
|
|
|
|
FXTYPE_SPLASH3
|
2020-05-26 23:16:31 +00:00
|
|
|
};
|
|
|
|
|
2019-05-30 11:35:13 +00:00
|
|
|
class CMBlur
|
|
|
|
{
|
2019-07-03 15:26:15 +00:00
|
|
|
public:
|
2020-04-17 05:54:14 +00:00
|
|
|
static RwRaster *pFrontBuffer;
|
|
|
|
static bool ms_bJustInitialised;
|
2020-06-27 21:01:51 +00:00
|
|
|
static bool ms_bScaledBlur;
|
2020-04-17 05:54:14 +00:00
|
|
|
static bool BlurOn;
|
2020-05-15 14:30:25 +00:00
|
|
|
static float Drunkness;
|
2019-05-30 11:35:13 +00:00
|
|
|
|
2020-12-16 20:53:47 +00:00
|
|
|
static int32 pBufVertCount;
|
|
|
|
|
2019-05-30 11:35:13 +00:00
|
|
|
public:
|
2020-06-27 21:01:51 +00:00
|
|
|
static RwBool MotionBlurOpen(RwCamera *cam);
|
|
|
|
static RwBool MotionBlurClose(void);
|
2019-05-30 11:35:13 +00:00
|
|
|
static void CreateImmediateModeData(RwCamera *cam, RwRect *rect);
|
2020-12-16 20:53:47 +00:00
|
|
|
static void CreateImmediateModeData(RwCamera *cam, RwRect *rect, RwIm2DVertex *verts, RwRGBA color, float u1Off, float v1Off, float u2Off, float v2Off, float z, int fullTexture);
|
2020-06-29 10:12:43 +00:00
|
|
|
static void MotionBlurRender(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blur, int32 type, uint32 bluralpha);
|
|
|
|
static void OverlayRender(RwCamera *cam, RwRaster *raster, RwRGBA color, int32 type, int32 bluralpha);
|
2020-06-18 22:10:41 +00:00
|
|
|
static void SetDrunkBlur(float drunkness);
|
2020-05-15 14:30:25 +00:00
|
|
|
static void ClearDrunkBlur();
|
2020-05-26 23:16:31 +00:00
|
|
|
|
2020-12-16 20:53:47 +00:00
|
|
|
static bool PosInside(RwRect *rect, float x1, float y1, float x2, float y2);
|
|
|
|
static bool AddRenderFx(RwCamera *cam, RwRect *rect, float z, FxType type);
|
|
|
|
static void OverlayRenderFx(RwCamera *cam, RwRaster *frontBuf);
|
2019-05-30 11:35:13 +00:00
|
|
|
};
|