summaryrefslogtreecommitdiffstats
path: root/src/render/MBlur.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-18 13:31:24 +0100
committerGitHub <noreply@github.com>2020-12-18 13:31:24 +0100
commitdb752d141b03fdaf3c6f8b9875def1cf3f2452d3 (patch)
treed30879966544eaeb3c916a5c592a6959a799ea2e /src/render/MBlur.h
parentPlayerInfo functions reordered into original order, FindPlayer... functions moved to PlayerInfo, improved CVector <-> RwV3d conversion, small fixes (diff)
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.tar
re3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.tar.gz
re3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.tar.bz2
re3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.tar.lz
re3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.tar.xz
re3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.tar.zst
re3-db752d141b03fdaf3c6f8b9875def1cf3f2452d3.zip
Diffstat (limited to '')
-rw-r--r--src/render/MBlur.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/render/MBlur.h b/src/render/MBlur.h
index c2572256..3dc53082 100644
--- a/src/render/MBlur.h
+++ b/src/render/MBlur.h
@@ -2,12 +2,14 @@
enum FxType
{
- FXTYPE_0 = 0,
- FXTYPE_1,
- FXTYPE_2,
- FXTYPE_3,
- FXTYPE_4,
- FXTYPE_5,
+ FXTYPE_WATER1,
+ FXTYPE_WATER2,
+ FXTYPE_BLOOD1,
+ FXTYPE_BLOOD2,
+ FXTYPE_HEATHAZE,
+ FXTYPE_SPLASH1,
+ FXTYPE_SPLASH2,
+ FXTYPE_SPLASH3
};
class CMBlur
@@ -19,16 +21,19 @@ public:
static bool BlurOn;
static float Drunkness;
+ static int32 pBufVertCount;
+
public:
static RwBool MotionBlurOpen(RwCamera *cam);
static RwBool MotionBlurClose(void);
static void CreateImmediateModeData(RwCamera *cam, RwRect *rect);
+ static void CreateImmediateModeData(RwCamera *cam, RwRect *rect, RwIm2DVertex *verts, RwRGBA color, float u1Off, float v1Off, float u2Off, float v2Off, float z, int fullTexture);
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);
static void SetDrunkBlur(float drunkness);
static void ClearDrunkBlur();
- //TODO
- static void AddRenderFx(RwCamera *,RwRect *,float,FxType)
- {}
+ 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);
};