summaryrefslogtreecommitdiffstats
path: root/src/render/ShadowCamera.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
commit1803dcc873df329282adab46e1d42baa4b6ee45b (patch)
treed78ac699caa9124338701a5e413b70379204c8a3 /src/render/ShadowCamera.h
parentNULL->nil (diff)
downloadre3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.gz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.bz2
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.lz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.xz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.zst
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.zip
Diffstat (limited to '')
-rw-r--r--src/render/ShadowCamera.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/render/ShadowCamera.h b/src/render/ShadowCamera.h
new file mode 100644
index 00000000..a2149db7
--- /dev/null
+++ b/src/render/ShadowCamera.h
@@ -0,0 +1,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;
+ }
+}; \ No newline at end of file