Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

OrthographicCamera Class Reference
[Scene Graph]

#include <lvt/Camera.h>

Inheritance diagram for OrthographicCamera:

Inheritance graph
[legend]
List of all members.

Detailed Description

An orthographic camera.


Public Member Functions

virtual void FitToWnd (int width, int height)
 Adjusts the camera to fit the shape of a window.
virtual void Render ()
 "Draws" the camera
void SetOrtho (float left, float right, float bottom, float top, float near, float far)
 Sets the Orthographic projection parameters.


Member Function Documentation

virtual void FitToWnd int  width,
int  height
[virtual]
 

Adjusts the camera to fit the shape of a window.

When a camera is attached to a Wnd via Wnd::AdjustCamera, the Wnd object will call this member function when it is resized.

It is not usually necessary to call this method manually.

Implements Camera.

virtual void Render  )  [virtual]
 

"Draws" the camera

Sets the view on the scene, and initializes the OpenGL projection matrix.

Implements Camera.

void SetOrtho float  left,
float  right,
float  bottom,
float  top,
float  near,
float  far
 

Sets the Orthographic projection parameters.

The arguments are the same as those to the glOrtho function.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1