#include <TRenderContext.h>
Classes | |
struct | PROJECTIONPARAMS |
struct | VIEWPORTPARAMS |
Public Types | |
enum | FLAG_ : FLAG { FLAG_DIRTY = BITFLAG( 0 ) , FLAG_FOG = BITFLAG( 1 ) , FLAG_HAS_MODELWORLDMATRIX = BITFLAG( 2 ) , FLAG_HAS_VIEWWORLDMATRIX = BITFLAG( 3 ) , FLAG_UNK3 = BITFLAG( 4 ) , FLAG_UNK4 = BITFLAG( 5 ) , FLAG_HAS_WORLDPLANES = BITFLAG( 6 ) , FLAG_UNK6 = BITFLAG( 7 ) , FLAG_DIRTY_WORLDMODELMATRIX = BITFLAG( 8 ) , FLAG_DIRTY_VIEWMODELMATRIX = BITFLAG( 9 ) } |
enum | CameraMode_ : CameraMode { CameraMode_Perspective , CameraMode_Orthographic } |
typedef TUINT32 | FLAG |
typedef TUINT32 | CameraMode |
Static Public Member Functions | |
static void | ComputePerspectiveProjection (TMatrix44 &a_rOutProjection, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams) |
static void | ComputeOrthographicProjection (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) |
static void | ComputeOrthographicFrustum (TFrustum &a_rcFrustum, const VIEWPORTPARAMS &a_rViewportParams, const PROJECTIONPARAMS &a_rProjParams) |
static TBOOL | CullSphereToFrustumSimple (const TSphere &a_rSphere, const TPlane *a_pPlanes, TINT a_iNumPlanes) |
static TINT | CullSphereToFrustum (const TSphere &a_rSphere, const TPlane *a_pPlanes, TINT a_iClipFlags, TINT a_iClipFlagsMask) |
Protected Member Functions | |
void | SetDirty (TBOOL a_bDirty) |
void | SetFlag (FLAG a_eFlag, TBOOL a_bEnable) |
Definition at line 40 of file TRenderContext.h.
typedef TUINT32 TRenderContext::CameraMode |
Definition at line 58 of file TRenderContext.h.
typedef TUINT32 TRenderContext::FLAG |
Definition at line 43 of file TRenderContext.h.
Enumerator | |
---|---|
CameraMode_Perspective | |
CameraMode_Orthographic |
Definition at line 59 of file TRenderContext.h.
enum TRenderContext::FLAG_ : FLAG |
Enumerator | |
---|---|
FLAG_DIRTY | |
FLAG_FOG | |
FLAG_HAS_MODELWORLDMATRIX | |
FLAG_HAS_VIEWWORLDMATRIX | |
FLAG_UNK3 | |
FLAG_UNK4 | |
FLAG_HAS_WORLDPLANES | |
FLAG_UNK6 | |
FLAG_DIRTY_WORLDMODELMATRIX | |
FLAG_DIRTY_VIEWMODELMATRIX |
Definition at line 44 of file TRenderContext.h.
TRenderContext::TRenderContext | ( | TRenderInterface * | pRender | ) |
Definition at line 42 of file TRenderContext.cpp.
|
virtual |
Definition at line 77 of file TRenderContext.cpp.
void TRenderContext::AddLight | ( | TLightID | a_iLightId | ) |
Definition at line 293 of file TRenderContext.cpp.
void TRenderContext::ClearLightIDs | ( | ) |
Definition at line 288 of file TRenderContext.cpp.
|
static |
Definition at line 332 of file TRenderContext.cpp.
|
static |
Definition at line 140 of file TRenderContext.cpp.
|
static |
Definition at line 298 of file TRenderContext.cpp.
|
static |
Definition at line 120 of file TRenderContext.cpp.
|
static |
Definition at line 210 of file TRenderContext.cpp.
|
static |
Definition at line 197 of file TRenderContext.cpp.
void TRenderContext::EnableFog | ( | TBOOL | a_bEnable | ) |
|
inline |
Definition at line 143 of file TRenderContext.h.
|
inline |
Definition at line 149 of file TRenderContext.h.
|
inline |
Definition at line 109 of file TRenderContext.h.
|
inline |
Definition at line 141 of file TRenderContext.h.
TUINT TRenderContext::GetClipFlags | ( | ) | const |
Definition at line 170 of file TRenderContext.cpp.
|
inline |
Definition at line 138 of file TRenderContext.h.
|
inline |
Definition at line 118 of file TRenderContext.h.
|
inline |
Definition at line 135 of file TRenderContext.h.
const TMatrix44 & TRenderContext::GetModelWorldMatrix | ( | ) |
Definition at line 255 of file TRenderContext.cpp.
|
inline |
Definition at line 103 of file TRenderContext.h.
|
inline |
Definition at line 146 of file TRenderContext.h.
|
inline |
Definition at line 123 of file TRenderContext.h.
const TMatrix44 & TRenderContext::GetViewModelMatrix | ( | ) |
Definition at line 266 of file TRenderContext.cpp.
|
inline |
Definition at line 106 of file TRenderContext.h.
const TMatrix44 & TRenderContext::GetViewWorldMatrix | ( | ) |
Definition at line 244 of file TRenderContext.cpp.
|
inline |
Definition at line 117 of file TRenderContext.h.
const TMatrix44 & TRenderContext::GetWorldModelMatrix | ( | ) |
Definition at line 277 of file TRenderContext.cpp.
const TPlane * TRenderContext::GetWorldPlanes | ( | ) |
Definition at line 180 of file TRenderContext.cpp.
|
inline |
Definition at line 136 of file TRenderContext.h.
|
inline |
Definition at line 115 of file TRenderContext.h.
|
inline |
Definition at line 116 of file TRenderContext.h.
|
inline |
Definition at line 121 of file TRenderContext.h.
|
inline |
Definition at line 120 of file TRenderContext.h.
|
inline |
Definition at line 144 of file TRenderContext.h.
void TRenderContext::SetCameraMode | ( | CameraMode | a_eCameraMode | ) |
Definition at line 114 of file TRenderContext.cpp.
|
inline |
Definition at line 140 of file TRenderContext.h.
Definition at line 175 of file TRenderContext.cpp.
|
protected |
Definition at line 13 of file TRenderContext.cpp.
Definition at line 20 of file TRenderContext.cpp.
Definition at line 34 of file TRenderContext.cpp.
|
virtual |
Definition at line 81 of file TRenderContext.cpp.
void TRenderContext::SetProjectionParams | ( | const PROJECTIONPARAMS & | a_rParams | ) |
Definition at line 95 of file TRenderContext.cpp.
|
inline |
Definition at line 147 of file TRenderContext.h.
|
inline |
Definition at line 124 of file TRenderContext.h.
void TRenderContext::SetViewportParameters | ( | const VIEWPORTPARAMS & | a_rParams | ) |
Definition at line 108 of file TRenderContext.cpp.
|
virtual |
Definition at line 88 of file TRenderContext.cpp.
|
pure virtual |
Implemented in TRenderContextD3D.
|
protected |
Definition at line 181 of file TRenderContext.h.
|
protected |
Definition at line 183 of file TRenderContext.h.
|
protected |
Definition at line 176 of file TRenderContext.h.
|
protected |
Definition at line 182 of file TRenderContext.h.
|
protected |
Definition at line 168 of file TRenderContext.h.
|
protected |
Definition at line 166 of file TRenderContext.h.
|
protected |
Definition at line 165 of file TRenderContext.h.
|
protected |
Definition at line 187 of file TRenderContext.h.
|
protected |
Definition at line 180 of file TRenderContext.h.
|
protected |
Definition at line 179 of file TRenderContext.h.
|
protected |
Definition at line 177 of file TRenderContext.h.
|
protected |
Definition at line 189 of file TRenderContext.h.
|
protected |
Definition at line 191 of file TRenderContext.h.
|
protected |
Definition at line 172 of file TRenderContext.h.
|
protected |
Definition at line 174 of file TRenderContext.h.
|
protected |
Definition at line 170 of file TRenderContext.h.
|
protected |
Definition at line 186 of file TRenderContext.h.
|
protected |
Definition at line 169 of file TRenderContext.h.
|
protected |
Definition at line 175 of file TRenderContext.h.
|
protected |
Definition at line 185 of file TRenderContext.h.
|
protected |
Definition at line 173 of file TRenderContext.h.
|
protected |
Definition at line 192 of file TRenderContext.h.
|
protected |
Definition at line 171 of file TRenderContext.h.
|
protected |
Definition at line 164 of file TRenderContext.h.
|
protected |
Definition at line 167 of file TRenderContext.h.