35 auto pRenderContext = pRender->GetCurrentContext();
38 projParams.
m_Centre = { m_fCentreX * pRenderContext->GetWidth(), m_fCentreY * pRenderContext->GetHeight() };
44 projParams.
m_Proj.
x = ( pRenderContext->GetWidth() * 0.5f ) / tan( m_fFOV * 0.5f );
49 projParams.
m_Proj.
y *= render->GetPixelAspectRatio();
54 projParams.
m_Proj.
y = ( pRenderContext->GetHeight() * 0.5f ) / tan( m_fFOV * 0.5f );
59 projParams.
m_Proj.
x /= render->GetPixelAspectRatio();
66 pRenderContext->SetProjectionParams( projParams );
69 pRenderContext->SetCameraMode( m_eMode );
72 m_TransformObject.GetLocalMatrixImp( matrix );
75 pRenderContext->SetWorldViewMatrix( matrix );
76 pRenderContext->SetModelViewMatrix( matrix );
77 pRenderContext->Update();