Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

PerspectiveProjection Class Reference

#include <projection.h>

Inheritance diagram for PerspectiveProjection:

Inheritance graph
[legend]
Collaboration diagram for PerspectiveProjection:

Collaboration graph
[legend]
List of all members.

Detailed Description

Data describing perspective projection mode.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Types

enum  PROJECTIONMODE { INVALIDPROJECTION = -1, PERSPECTIVE = 0, ORTHOGRAPHIC = 1, CUSTOM = 2 }
 Projection modes. More...


Public Member Functions

 PerspectiveProjection ()
virtual void BuildProjection (const Viewport &rkViewport)

Public Attributes

float m_fFOV
PROJECTIONMODE m_eMode
float m_fZNear
float m_fZFar
Matrix m_kMatrix


Member Enumeration Documentation

enum PROJECTIONMODE [inherited]
 

Projection modes.

Enumeration values:
INVALIDPROJECTION  Invalid mode
PERSPECTIVE  Perspective projection
ORTHOGRAPHIC  Orthographic projection
CUSTOM  Custom projection


Constructor & Destructor Documentation

PerspectiveProjection  ) 
 

Set default values


Member Function Documentation

virtual void BuildProjection const Viewport rkViewport  )  [virtual]
 

Build projection matrix

Parameters:
rkViewport Current viewport

Reimplemented from Projection.


Member Data Documentation

float m_fFOV
 

FOV angle

PROJECTIONMODE m_eMode [inherited]
 

Projection mode

float m_fZNear [inherited]
 

Z near clipping plane distance

Reimplemented in OrthographicProjection.

float m_fZFar [inherited]
 

Z far clipping plane distance

Reimplemented in OrthographicProjection.

Matrix m_kMatrix [inherited]
 

Projection matrix


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:14 2004 for NeoEngine by doxygen 1.3.5