#include <sglFrustum.hpp>
Inheritance diagram for sglFrustum::
Public Types | |
enum | { eLEFT = 0, eUP = 1, eRIGHT = 2, eDOWN = 3, eFRONT = 4, eBACK = 5, eNUM_PLANES = 6 } |
Public Methods | |
sglFrustum () | |
template<class S> | sglFrustum (const sglFrustum< S > &rhs) |
virtual | ~sglFrustum () |
template<class S> sglFrustum& | operator= (const sglFrustum< S > &rhs) |
bool | getOrthoFlag () const |
double | getAspect () const |
double | getFOVY () const |
bool | build (sglMat4< T > &projection_matrix) |
bool | buildPerspective (double fovY, double aspect, double near_clip, double far_clip) |
bool | buildPerspective (double near_left, double near_right, double near_bottom, double near_top, double near_clip, double far_clip) |
bool | buildOrtho (double left, double right, double bottom, double top, double near_clip, double far_clip) |
Definition at line 52 of file sglFrustum.hpp.
|
Indices to access the individual planes of the polytope.
Definition at line 56 of file sglFrustum.hpp. |
|
Default constructor.
Definition at line 61 of file sglFrustum.hpp. |
|
Copy constructor.
Definition at line 65 of file sglFrustum.hpp. |
|
Destructor.
Definition at line 72 of file sglFrustum.hpp. |
|
assignment operator.
Definition at line 76 of file sglFrustum.hpp. |
|
Query whether or not this is orthographic
Definition at line 90 of file sglFrustum.hpp. Referenced by operator=(). |
|
Query the aspect ratio of the frustum: width/height
Definition at line 95 of file sglFrustum.hpp. |
|
Query the current vertical field of view (FOV) in radians.
Definition at line 101 of file sglFrustum.hpp. Referenced by operator=(). |
|
This computes a frustum/polytope based on an OpenGL format projection matrix.
Definition at line 172 of file sglFrustum.hpp. |
|
Compute a perspective frustum (from arguments to gluPerspective)
Definition at line 297 of file sglFrustum.hpp. |
|
Compute a perspective frustum (from arguments to glFrustum). The volume is defined by the parameters (left, bottom, -near) and (right, top, -near)
Definition at line 274 of file sglFrustum.hpp. |
|
Compute an orthographic view volume (from arguments to glOrtho)
Definition at line 407 of file sglFrustum.hpp. |