57 auto pDevice = pRenderer->GetDirect3DDevice();
59 pDevice->SetRenderState( D3DRS_FOGENABLE, TRUE );
60 pDevice->SetRenderState( D3DRS_FOGTABLEMODE, D3DFOG_LINEAR );
61 pDevice->SetRenderState(
73 auto pDevice = pRenderer->GetDirect3DDevice();
75 pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
107 pRenderer->GetDirect3DDevice()->SetTransform( D3DTS_PROJECTION,
TREINTERPRETCAST( D3DMATRIX*, &m_Projection ) );
#define TSTATICCAST(POINTERTYPE, VALUE)
#define TREINTERPRETCAST(TYPE, VALUE)
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
static constinit TMatrix44 IDENTITY
void ComputePerspectiveFrustum()
void ComputeOrthographicProjection()
TRenderContextD3D(TRenderInterface *a_pRenderer)
virtual void Update() override
void ComputePerspectiveProjection()
void ComputeOrthographicFrustum()
DirectX 8 implementation of the render interface Handles DirectX 8 specific rendering functionality a...
PROJECTIONPARAMS m_oProjParams
TRenderContext(TRenderInterface *pRender)
static void ComputeOrthographicFrustum(TFrustum &a_rcFrustum, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams)
TFrustum m_aFrustumPlanes1
TFLOAT m_fFogDistanceStart
VIEWPORTPARAMS m_oViewportParams
static void ComputeOrthographicProjection(TMatrix44 &a_rOutProjection, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams)
TRenderInterface * m_pRenderer
TFrustum m_aFrustumPlanes2
static void ComputePerspectiveProjection(TMatrix44 &a_rOutProjection, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams)
static void ComputePerspectiveFrustum(TFrustum &a_rcFrustum, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams)