summaryrefslogtreecommitdiff
path: root/src/render/ShadowCamera.h
blob: a2149db70258e3e34ec560aaf299040d9c9ba6e7 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once


class CShadowCamera
{
public:
	RwCamera *m_pCamera;
	RwTexture *m_pTexture;
	
	CShadowCamera();
	~CShadowCamera();

	RwCamera *Create(int32 rasterSize);
	void Destroy();
	
	RwCamera *SetFrustum(float objectRadius);
	RwCamera *SetLight(RpLight *light);
	RwCamera *SetCenter(RwV3d *center);
	
	RwCamera *Update(RpClump *clump);
	RwCamera *Update(RpAtomic *atomic);
	
	void InvertRaster();
	
	RwRaster* GetRwRenderRaster()
	{
		return RwCameraGetRaster(m_pCamera);
	}
	
	// ShadowRasterRender(RwV2d *)
	// ApplyAlphaMapToRaster(void)
	
	RwRaster *MakeGradientRaster();
	
	RwTexture *GetRwRenderTexture()
	{
		return m_pTexture;
	}
	
	RwRaster* GetRwZRaster()
	{
		return RwCameraGetZRaster(m_pCamera);
	}
	
	RwRaster *RasterResample(RwRaster *dstRaster);
	RwRaster *RasterBlur(RwRaster *dstRaster, int32 numPasses);
	RwRaster *RasterGradient(RwRaster *dstRaster);
	RwRaster *DrawOutlineBorder(RwRGBA const& color);

	RwCamera *GetRwCamera()
	{
		return m_pCamera;
	}
};