Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

OrthographicSpace Class Reference

#include <OrthographicSpace.h>

Inherited by OrthographicCamera.

List of all members.

Public Member Functions

 OrthographicSpace ()
 OrthographicSpace (int left, int right, int bottom, int top)
void setBorders (int left, int right, int bottom, int top)
void setOrthographicProjection ()
void resetProjection ()

Public Attributes

int left
int right
int bottom
int top


Detailed Description

This class encapsulates an orthographic view. To get a orthographic projection, simply derive from this class and call setOrthographicPorjection() before rendering the content. At the end of the render method, resetProjection should be called.

Version:
0.3

Definition at line 19 of file OrthographicSpace.h.


Constructor & Destructor Documentation

OrthographicSpace::OrthographicSpace  ) 
 

The default constructor creates an orthographic with the default values defined in LifeVariables.h

Definition at line 10 of file OrthographicSpace.cpp.

References setBorders().

OrthographicSpace::OrthographicSpace int  left,
int  right,
int  bottom,
int  top
 

The constructor sets up the orthogonal projection and stores the left, right, bottom and top border into the locale member variables

Parameters:
left plane of the object space
right plane of the object space
bottom plane of the object space
top plane of the object space
near plane of the object space
far plane of the object space

Definition at line 18 of file OrthographicSpace.cpp.

References setBorders().


Member Function Documentation

void OrthographicSpace::resetProjection  ) 
 

Deinitialise the orthographic projection

Definition at line 42 of file OrthographicSpace.cpp.

Referenced by OrthographicCamera::stopCamera().

void OrthographicSpace::setBorders int  left,
int  right,
int  bottom,
int  top
 

Change or setup the orthographic object space.

Parameters:
left plane of the object space
right plane of the object space
bottom plane of the object space
top plane of the object space
near plane of the object space
far plane of the object space

Definition at line 23 of file OrthographicSpace.cpp.

Referenced by OrthographicSpace().

void OrthographicSpace::setOrthographicProjection  ) 
 

Initialise the orthographic projection

Definition at line 31 of file OrthographicSpace.cpp.

References bottom, left, right, and top.

Referenced by OrthographicCamera::startCamera().


Member Data Documentation

int OrthographicSpace::bottom
 

The bottom border of the viewport

Definition at line 29 of file OrthographicSpace.h.

Referenced by setOrthographicProjection().

int OrthographicSpace::left
 

The left border of the viewport

Definition at line 23 of file OrthographicSpace.h.

Referenced by setOrthographicProjection().

int OrthographicSpace::right
 

The right border of the viewport

Definition at line 26 of file OrthographicSpace.h.

Referenced by setOrthographicProjection().

int OrthographicSpace::top
 

The upper border of the viewport

Definition at line 32 of file OrthographicSpace.h.

Referenced by setOrthographicProjection().


The documentation for this class was generated from the following files:
Generated on Mon Dec 12 15:20:26 2005 for CCube by  doxygen 1.4.1