summaryrefslogtreecommitdiffstats
path: root/src/render/MBlur.h
blob: ac298c226b30343f3b41be579dc99d72c51759ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

enum FxType
{
	FXTYPE_0 = 0,
	FXTYPE_1,
	FXTYPE_2,
	FXTYPE_3,
	FXTYPE_4,
	FXTYPE_5,
};

class CMBlur
{
public:
	static RwRaster *pFrontBuffer;
	static bool ms_bJustInitialised;
	static bool BlurOn;
	static float Drunkness;

public:
	static void MotionBlurOpen(RwCamera *cam);
	static void MotionBlurClose(void);
	static void CreateImmediateModeData(RwCamera *cam, RwRect *rect);
	static void MotionBlurRender(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blur, int32 type, uint32 alpha);
	static void OverlayRender(RwCamera *cam, RwRaster *raster, RwRGBA color, int32 type, int32 alpha);
	static void SetDrunkBlur(float drunkness);
	static void ClearDrunkBlur();
	
	//TODO
	static void AddRenderFx(RwCamera *,RwRect *,float,FxType)
	{}
};