Classes

frustum.h File Reference

#include "plane.h"
Include dependency graph for frustum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  frustum_t
 Basic frustum object. More...

Functions

bool createViewFrustum (IN const point3d_t &position, IN const point3d_t &facing, IN const point3d_t &up, IN float fovyRadians, IN float zNear, IN float zFar, IN float aspect, OUT frustum_t &frustum) throw ()
 create a view frustum given basic geometric information.

Function Documentation

bool createViewFrustum ( IN const point3d_t position,
IN const point3d_t facing,
IN const point3d_t up,
IN float  fovyRadians,
IN float  zNear,
IN float  zFar,
IN float  aspect,
OUT frustum_t frustum 
) throw ()

create a view frustum given basic geometric information.

Keep in mind, this uses standard OpenGL right-handed coordinates, with Y being the usual up direction, and x and z in the plane of the ground.

Parameters:
fovyRadians field of view, Y

Definition at line 219 of file frustum.cpp.