PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureCamera::PureCameraImpl Class Reference

Detailed Description

Definition at line 34 of file PureCamera.cpp.

Public Member Functions

virtual ~PureCameraImpl ()
 
const TRECTgetViewport () const
 
void SetViewport (TPureUInt vx, TPureUInt vy, TPureUInt vsx, TPureUInt vsy)
 
TPureFloat getNearPlane () const
 
void SetNearPlane (TPureFloat value)
 
TPureFloat getFarPlane () const
 
void SetFarPlane (TPureFloat value)
 
TPureFloat getFieldOfView () const
 
void SetFieldOfView (TPureFloat value)
 
TPureFloat getAspectRatio () const
 
void SetAspectRatio (TPureFloat value)
 
TPURE_CLEAR_MODE getClearMode () const
 
void SetClearMode (TPURE_CLEAR_MODE mode)
 
TPURE_ASPECTRATIO_MODE getAspectRatioMode () const
 
void SetAspectRatioMode (TPURE_ASPECTRATIO_MODE mode)
 
PureColorgetBackgroundColor ()
 
const PureColorgetBackgroundColor () const
 
bool project3dTo2d (TPureFloat fWorldX, TPureFloat xWorldY, TPureFloat fWorldZ, const PureVector &vecPos, const PureVector &vecTarget, const PureVector &vecUp, PureVector &vecProjected) const
 
bool project2dTo3d (TPureUInt nScreenX, TPureUInt nScreenY, TPureFloat nScreenDepth, const PureVector &vecPos, const PureVector &vecTarget, const PureVector &vecUp, PureVector &vecUnprojected) const
 

Private Member Functions

 PureCameraImpl ()
 

Private Attributes

TRECT rectViewport
 Viewport geometry.
 
TPureFloat fPlaneNear
 
TPureFloat fPlaneFar
 Near plane, far plane.
 
TPureFloat fFOV
 
TPureFloat fAspectRatio
 Field of view, aspect ratio.
 
TPURE_ASPECTRATIO_MODE aspectMode
 Aspect ratio mode.
 
TPURE_CLEAR_MODE clearMode
 What buffers to clear before rendering.
 
PureColor clrBg
 Background color used when clearing buffer.
 

Friends

class PureCamera
 

Constructor & Destructor Documentation

◆ ~PureCameraImpl()

PureCamera::PureCameraImpl::~PureCameraImpl ( )
virtual

Definition at line 576 of file PureCamera.cpp.

◆ PureCameraImpl()

PureCamera::PureCameraImpl::PureCameraImpl ( )
private

Definition at line 564 of file PureCamera.cpp.

Member Function Documentation

◆ getAspectRatio()

TPureFloat PureCamera::PureCameraImpl::getAspectRatio ( ) const

Definition at line 159 of file PureCamera.cpp.

◆ getAspectRatioMode()

TPURE_ASPECTRATIO_MODE PureCamera::PureCameraImpl::getAspectRatioMode ( ) const

Definition at line 184 of file PureCamera.cpp.

◆ getBackgroundColor() [1/2]

PureColor & PureCamera::PureCameraImpl::getBackgroundColor ( )

Definition at line 195 of file PureCamera.cpp.

◆ getBackgroundColor() [2/2]

const PureColor & PureCamera::PureCameraImpl::getBackgroundColor ( ) const

Definition at line 200 of file PureCamera.cpp.

◆ getClearMode()

TPURE_CLEAR_MODE PureCamera::PureCameraImpl::getClearMode ( ) const

Definition at line 173 of file PureCamera.cpp.

◆ getFarPlane()

TPureFloat PureCamera::PureCameraImpl::getFarPlane ( ) const

Definition at line 131 of file PureCamera.cpp.

◆ getFieldOfView()

TPureFloat PureCamera::PureCameraImpl::getFieldOfView ( ) const

Definition at line 145 of file PureCamera.cpp.

◆ getNearPlane()

TPureFloat PureCamera::PureCameraImpl::getNearPlane ( ) const

Definition at line 117 of file PureCamera.cpp.

◆ getViewport()

const TRECT & PureCamera::PureCameraImpl::getViewport ( ) const

Definition at line 100 of file PureCamera.cpp.

◆ project2dTo3d()

bool PureCamera::PureCameraImpl::project2dTo3d ( TPureUInt nScreenX,
TPureUInt nScreenY,
TPureFloat nScreenDepth,
const PureVector & vecPos,
const PureVector & vecTarget,
const PureVector & vecUp,
PureVector & vecUnprojected ) const

Definition at line 224 of file PureCamera.cpp.

◆ project3dTo2d()

bool PureCamera::PureCameraImpl::project3dTo2d ( TPureFloat fWorldX,
TPureFloat xWorldY,
TPureFloat fWorldZ,
const PureVector & vecPos,
const PureVector & vecTarget,
const PureVector & vecUp,
PureVector & vecProjected ) const

Definition at line 205 of file PureCamera.cpp.

◆ SetAspectRatio()

void PureCamera::PureCameraImpl::SetAspectRatio ( TPureFloat value)

Definition at line 164 of file PureCamera.cpp.

◆ SetAspectRatioMode()

void PureCamera::PureCameraImpl::SetAspectRatioMode ( TPURE_ASPECTRATIO_MODE mode)

Definition at line 189 of file PureCamera.cpp.

◆ SetClearMode()

void PureCamera::PureCameraImpl::SetClearMode ( TPURE_CLEAR_MODE mode)

Definition at line 178 of file PureCamera.cpp.

◆ SetFarPlane()

void PureCamera::PureCameraImpl::SetFarPlane ( TPureFloat value)

Definition at line 136 of file PureCamera.cpp.

◆ SetFieldOfView()

void PureCamera::PureCameraImpl::SetFieldOfView ( TPureFloat value)

Definition at line 150 of file PureCamera.cpp.

◆ SetNearPlane()

void PureCamera::PureCameraImpl::SetNearPlane ( TPureFloat value)

Definition at line 122 of file PureCamera.cpp.

◆ SetViewport()

void PureCamera::PureCameraImpl::SetViewport ( TPureUInt vx,
TPureUInt vy,
TPureUInt vsx,
TPureUInt vsy )

Definition at line 105 of file PureCamera.cpp.

Friends And Related Symbol Documentation

◆ PureCamera

friend class PureCamera
friend

Definition at line 96 of file PureCamera.cpp.

Member Data Documentation

◆ aspectMode

TPURE_ASPECTRATIO_MODE PureCamera::PureCameraImpl::aspectMode
private

Aspect ratio mode.

Definition at line 88 of file PureCamera.cpp.

◆ clearMode

TPURE_CLEAR_MODE PureCamera::PureCameraImpl::clearMode
private

What buffers to clear before rendering.

Definition at line 89 of file PureCamera.cpp.

◆ clrBg

PureColor PureCamera::PureCameraImpl::clrBg
private

Background color used when clearing buffer.

Definition at line 90 of file PureCamera.cpp.

◆ fAspectRatio

TPureFloat PureCamera::PureCameraImpl::fAspectRatio
private

Field of view, aspect ratio.

Definition at line 87 of file PureCamera.cpp.

◆ fFOV

TPureFloat PureCamera::PureCameraImpl::fFOV
private

Definition at line 87 of file PureCamera.cpp.

◆ fPlaneFar

TPureFloat PureCamera::PureCameraImpl::fPlaneFar
private

Near plane, far plane.

Definition at line 86 of file PureCamera.cpp.

◆ fPlaneNear

TPureFloat PureCamera::PureCameraImpl::fPlaneNear
private

Definition at line 86 of file PureCamera.cpp.

◆ rectViewport

TRECT PureCamera::PureCameraImpl::rectViewport
private

Viewport geometry.

Definition at line 85 of file PureCamera.cpp.


The documentation for this class was generated from the following file: