mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-02 21:05:39 +00:00
54 lines
No EOL
981 B
C++
54 lines
No EOL
981 B
C++
#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;
|
|
}
|
|
}; |