The Vish Visualization Shell 0.3
Vish
Public Member Functions | Public Attributes | List of all members
Wizt::ProjectionParameters Struct Reference

Projection parameters for rendering. More...

#include <ocean/Anemonia/View.hpp>

Inheritance diagram for Wizt::ProjectionParameters:
Wizt::View Wizt::RenderAble::SensorView

Public Member Functions

void setFrustum (double left, double right, double bottom, double top, double nearVal, double farVal)
 Set a perspectivic projection.
 
void setInfiniteFrustum (double Left, double Right, double Bottom, double Top, double NearVal)
 Define a perspective projection that reaches into infinity.
 
void setOrthographic (double left, double right, double bottom, double top, double nearVal, double farVal)
 Set an orthographic projection.
 

Public Attributes

MatrixOrArray Projection
 A 4x4 projection matrix as required by OpenGL in column-major order.
 

Detailed Description

Projection parameters for rendering.

Remembers the parameters used for construction and provides an OpenGL-compatible projection matrix.

Member Function Documentation

◆ setInfiniteFrustum()

void Wizt::ProjectionParameters::setInfiniteFrustum ( double  Left,
double  Right,
double  Bottom,
double  Top,
double  NearVal 
)

Define a perspective projection that reaches into infinity.

http://www.terathon.com/gdc07_lengyel.pdf

References Wizt::MatrixOrArray::Matrix, and Projection.