CRenderCamera

Class Hierarchy
C++
class CRenderCamera;
File

IRenderer.h

CRenderCamera::Far Data Member
C++
float Far;
Description

Window extents defined as a rect on NearPlane.

CRenderCamera::Near Data Member
C++
float Near;
Description

Window extents defined as a rect on NearPlane.

CRenderCamera::Orig Data Member
C++
Vec3 Orig;
Description

Location of origin of camera system in world coords.

CRenderCamera::wB Data Member
C++
float wB;
CRenderCamera::wL Data Member
C++
float wL;
CRenderCamera::wR Data Member
C++
float wR;
CRenderCamera::wT Data Member
C++
float wT;
CRenderCamera::X Data Member
C++
Vec3 X;
Description

X: Right Y: Up Z: Back (-Z = Forward)

CRenderCamera::Y Data Member
C++
Vec3 Y;
Description

X: Right Y: Up Z: Back (-Z = Forward)

CRenderCamera::Z Data Member
C++
Vec3 Z;
Description

X: Right Y: Up Z: Back (-Z = Forward)

CRenderCamera::CalcRegionVerts Method
C++
void CalcRegionVerts(Vec3 * V, const Vec2& vMin, const Vec2& vMax) const;
CRenderCamera::CalcTiledRegionVerts Method
C++
void CalcTiledRegionVerts(Vec3 * V, Vec2& vMin, Vec2& vMax, f32 nPosX, f32 nPosY, f32 nGridSizeX, f32 nGridSizeY) const;
CRenderCamera::CalcTileVerts Method
C++
void CalcTileVerts(Vec3 * V, f32 nPosX, f32 nPosY, f32 nGridSizeX, f32 nGridSizeY) const;
Description

CALCS EIGHT CORNERS FOR TILE OF VIEW-FRUSTUM

CRenderCamera::CalcVerts Method
C++
void CalcVerts(Vec3 * V) const;
Description

CALCS EIGHT CORNERS OF VIEW-FRUSTUM

CRenderCamera::CamToWorld Method
C++
Vec3 CamToWorld(const Vec3 & cP) const;
CRenderCamera::Copy Method
C++
void Copy(const CRenderCamera & Cam);
CRenderCamera::CRenderCamera Constructor ()
C++
CRenderCamera();
CRenderCamera(const CRenderCamera & Cam);
Description

Distances to near and far planes (in Viewing dir).

CRenderCamera::Frustum Method
C++
void Frustum(float l, float r, float b, float t, float Ndist, float Fdist);
CRenderCamera::GetFrustumParams Method
C++
void GetFrustumParams(float * l, float * r, float * b, float * t, float * Ndist, float * Fdist) const;
CRenderCamera::GetInvModelviewMatrix Method
C++
float* GetInvModelviewMatrix(float* M) const;
CRenderCamera::GetInvProjectionMatrix Method
C++
float* GetInvProjectionMatrix(float* M) const;
CRenderCamera::GetInvViewportMatrix Method
C++
float* GetInvViewportMatrix(float* M, int WW, int WH) const;
CRenderCamera::GetLookAtParams Method
C++
void GetLookAtParams(Vec3 * Eye, Vec3 * ViewRefPt, Vec3 * ViewUp) const;
Description

void TightlyFitToSphere(const Vec3& Eye, const Vec3& ViewUp, const Vec3& Cntr, float RadX, float RadY);

CRenderCamera::GetModelviewMatrix Method
C++
float* GetModelviewMatrix(float* M) const;
CRenderCamera::GetPerspectiveParams Method
C++
void GetPerspectiveParams(float * Yfov, float * Xfov, float * Aspect, float * Ndist, float * Fdist) const;
CRenderCamera::GetPixelRay Method
C++
void GetPixelRay(float sx, float sy, int ww, int wh, Vec3 * Start, Vec3 * Dir) const;
CRenderCamera::GetProjectionMatrix Method
C++
float* GetProjectionMatrix(float* M) const;
CRenderCamera::GetViewportMatrix Method
C++
float* GetViewportMatrix(float* M, int WW, int WH) const;
CRenderCamera::GetXform_Obj2Screen Method
C++
float* GetXform_Obj2Screen(float* M, int WW, int WH) const;
CRenderCamera::GetXform_Screen2Obj Method
C++
float* GetXform_Screen2Obj(float* M, int WW, int WH) const;
CRenderCamera::LoadIdentityXform Method
C++
void LoadIdentityXform();
CRenderCamera::LookAt Method
C++
void LookAt(const Vec3& Eye, const Vec3& ViewRefPt, const Vec3& ViewUp);
CRenderCamera::Perspective Method
C++
void Perspective(float Yfov, float Aspect, float Ndist, float Fdist);
CRenderCamera::Rotate Method
C++
void Rotate(const float M[9]);
CRenderCamera::SetModelviewMatrix Method
C++
void SetModelviewMatrix(const float* M);
CRenderCamera::Translate Method
C++
void Translate(const Vec3& trans);
CRenderCamera::ViewDir Method
C++
Vec3 ViewDir() const;
Description

VIEWING DIRECTION

CRenderCamera::ViewDirOffAxis Method
C++
Vec3 ViewDirOffAxis() const;
CRenderCamera::wCOP Method
C++
const Vec3& wCOP() const;
Description

WORLD COORDINATE CENTER-OF-PROJECTION (EYE)

CRenderCamera::WorldToCam Method
C++
Vec3 WorldToCam(const Vec3 & wP) const;
CRenderCamera::WorldToCamZ Method
C++
float WorldToCamZ(const Vec3 & wP) const;
CRenderCamera::Xform Method
C++
void Xform(const float M[16]);