diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-07-29 11:17:53 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-07-29 11:17:53 +0200 |
commit | 1803dcc873df329282adab46e1d42baa4b6ee45b (patch) | |
tree | d78ac699caa9124338701a5e413b70379204c8a3 /src/render/ShadowCamera.h | |
parent | NULL->nil (diff) | |
download | re3-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.h | 54 |
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 |