diff options
author | aap <aap@papnet.eu> | 2020-08-07 10:18:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 10:18:35 +0200 |
commit | 40185161b83091e79455acf6fe82f070e26c6662 (patch) | |
tree | 87ae90e9dc46c746d0a4819286ce1b965c3f91fa /src/render/CutsceneShadow.h | |
parent | Merge pull request #668 from majesticCoding/miami (diff) | |
parent | Update CutsceneShadow.h (diff) | |
download | re3-40185161b83091e79455acf6fe82f070e26c6662.tar re3-40185161b83091e79455acf6fe82f070e26c6662.tar.gz re3-40185161b83091e79455acf6fe82f070e26c6662.tar.bz2 re3-40185161b83091e79455acf6fe82f070e26c6662.tar.lz re3-40185161b83091e79455acf6fe82f070e26c6662.tar.xz re3-40185161b83091e79455acf6fe82f070e26c6662.tar.zst re3-40185161b83091e79455acf6fe82f070e26c6662.zip |
Diffstat (limited to 'src/render/CutsceneShadow.h')
-rw-r--r-- | src/render/CutsceneShadow.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/render/CutsceneShadow.h b/src/render/CutsceneShadow.h new file mode 100644 index 00000000..a59fe78f --- /dev/null +++ b/src/render/CutsceneShadow.h @@ -0,0 +1,52 @@ +#pragma once +#include "ShadowCamera.h" + +class CCutsceneShadow +{ +public: + enum + { + RASTER = 0, + RESAMPLE, + BLUR, + GRADIENT, + }; + + CShadowCamera m_Camera; + bool m_bResample; + CShadowCamera m_ResampleCamera; + int32 m_nBlurPasses; + CShadowCamera m_BlurCamera; + bool m_bGradient; + CShadowCamera m_GradientCamera; + + union + { + RwObject *m_pObject; + RpAtomic *m_pAtomic; + RpClump *m_pClump; + }; + + int32 m_nRwObjectType; + RpLight *m_pLight; + RwSphere m_BoundingSphere; + RwSphere m_BaseSphere; + + CCutsceneShadow(); + ~CCutsceneShadow(); + + RwSphere GetBaseSphere() + { + return m_BaseSphere; + } + + bool Create(RwObject *object, int32 rasterSize, bool resample, int32 blurPasses, bool gradient); + RwFrame *SetLightProperties(float angleY, float angleX, bool setLight); + bool IsInitialized(); + void Destroy(); + RwRaster *Update(); + RwTexture *UpdateForCutscene(); + CShadowCamera *GetShadowCamera(int32 camType = RASTER); + RwTexture *GetShadowRwTexture(); + void DrawBorderAroundTexture(RwRGBA const& color); +}; |