TPlane[WORLDPLANE_NUMOF] TFrustum
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TLightID aIDs[MAX_NUM_LIGHTS]
TLightID & operator[](TINT a_iIndex)
void Add(TLightID a_iLightId)
static constexpr TINT MAX_NUM_LIGHTS
PROJECTIONPARAMS m_oProjParams
static TBOOL CullSphereToFrustumSimple(const TSphere &a_rSphere, const TPlane *a_pPlanes, TINT a_iNumPlanes)
TRenderContext(TRenderInterface *pRender)
TMatrix44 m_oViewWorldMatrix
void SetSkeletonInstance(TSkeletonInstance *a_pSkeletonInstance)
void SetShadeCoeff(TFLOAT val)
TFLOAT GetAlphaBlend() const
TSkeletonInstance * GetSkeletonInstance() const
CameraMode GetCameraMode()
void SetProjectionParams(const PROJECTIONPARAMS &a_rParams)
virtual ~TRenderContext()
TFLOAT GetShadeCoeff() const
@ CameraMode_Orthographic
const PROJECTIONPARAMS & GetProjectionParams() const
static void ComputeOrthographicFrustum(TFrustum &a_rcFrustum, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams)
TUINT SetClipFlags(TUINT a_uiClipFlags)
void SetFlag(FLAG a_eFlag, TBOOL a_bEnable)
virtual void SetWorldViewMatrix(const TMatrix44 &a_rMatrix)
TMatrix44 & GetModelViewMatrix()
TFrustum m_aFrustumPlanes1
TFLOAT m_fFogDistanceStart
TBOOL IsFogEnabled() const
const TPlane * GetWorldPlanes()
const TPlane * GetFrustumPlanes() const
const TMatrix44 & GetModelWorldMatrix()
void SetViewportParameters(const VIEWPORTPARAMS &a_rParams)
const VIEWPORTPARAMS & GetViewportParameters() const
VIEWPORTPARAMS m_oViewportParams
static void ComputeOrthographicProjection(TMatrix44 &a_rOutProjection, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams)
TMatrix44 m_oModelWorldMatrix
TMatrix44 m_oWorldViewMatrix
static TINT CullSphereToFrustum(const TSphere &a_rSphere, const TPlane *a_pPlanes, TINT a_iClipFlags, TINT a_iClipFlagsMask)
void SetCameraObject(TCameraObject *a_pCameraObject)
const TVector4 & GetAmbientColour() const
TMatrix44 m_oModelViewMatrix
void AddLight(TLightID a_iLightId)
TCameraObject * GetCameraObject() const
void SetFogDistance(TFLOAT a_fStart, TFLOAT a_fEnd)
TUINT GetClipFlags() const
void SetDirty(TBOOL a_bDirty)
virtual void SetModelViewMatrix(const TMatrix44 &a_rMatrix)
TRenderInterface * m_pRenderer
TFrustum m_aFrustumPlanes2
TMatrix44 & GetWorldViewMatrix()
TSkeletonInstance * m_pCurrentSkeletonInstance
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)
const TMatrix44 & GetViewWorldMatrix()
const TMatrix44 & GetWorldModelMatrix()
void EnableFog(TBOOL a_bEnable)
@ FLAG_HAS_MODELWORLDMATRIX
@ FLAG_DIRTY_VIEWMODELMATRIX
@ FLAG_HAS_VIEWWORLDMATRIX
@ FLAG_DIRTY_WORLDMODELMATRIX
const TMatrix44 & GetViewModelMatrix()
TMatrix44 m_oWorldModelMatrix
TCameraObject * m_pCurrentCameraObject
void SetCameraMode(CameraMode a_eCameraMode)
TMatrix44 m_oViewModelMatrix
void SetAlphaBlend(TFLOAT val)
void SetFromFOV(TFLOAT a_fViewportWidth, TFLOAT a_fViewportHeight, TFLOAT a_fFOV, TFLOAT a_fNearPlane, TFLOAT a_fFarPlane)