Panda3D
Public Member Functions | Public Attributes

LFrustumd Class Reference

List of all members.

Public Member Functions

LMatrix4d get_ortho_projection_mat (CoordinateSystem cs=CS_default) const
 This computes a transform matrix that performs the orthographic transform defined by the frustum, accordinate to the indicated coordinate system.
LMatrix4d get_ortho_projection_mat (CoordinateSystem cs=CS_default) const
void get_perspective_params (double &yfov, double &aspect, double &fnear, double &ffar) const
void get_perspective_params (double &xfov, double &yfov, double &aspect, double &fnear, double &ffar) const
void get_perspective_params (double &yfov, double &aspect, double &fnear, double &ffar) const
void get_perspective_params (double &xfov, double &yfov, double &aspect, double &fnear, double &ffar) const
LMatrix4d get_perspective_projection_mat (CoordinateSystem cs=CS_default) const
 This computes a transform matrix that performs the perspective transform defined by the frustum, accordinate to the indicated coordinate system.
LMatrix4d get_perspective_projection_mat (CoordinateSystem cs=CS_default) const
void make_ortho (double fnear, double ffar)
 Behaves like gluOrtho.
void make_ortho (double fnear, double ffar)
void make_ortho (double fnear, double ffar, double l, double r, double t, double b)
void make_ortho (double fnear, double ffar, double l, double r, double t, double b)
 Behaves like gluOrtho.
void make_ortho_2D (double l, double r, double t, double b)
void make_ortho_2D ()
 Sets up a two-dimensional orthographic frustum.
void make_ortho_2D (double l, double r, double t, double b)
 Sets up a two-dimensional orthographic frustum.
void make_ortho_2D ()
void make_perspective (double xfov, double yfov, double fnear, double ffar)
void make_perspective (double xfov, double yfov, double fnear, double ffar)
void make_perspective_hfov (double xfov, double aspect, double fnear, double ffar)
 Behaves like gluPerspective (Aspect = width/height, Yfov in degrees) aspect +------------+ | | 1 | | yfov | | +------------+.
void make_perspective_hfov (double xfov, double aspect, double fnear, double ffar)
void make_perspective_vfov (double yfov, double aspect, double fnear, double ffar)
void make_perspective_vfov (double yfov, double aspect, double fnear, double ffar)

Public Attributes

double _b
double _ffar
double _fnear
double _l
double _r
double _t

Detailed Description

Definition at line 44 of file frustum.h.


Member Function Documentation

LMatrix4d LFrustumd::get_ortho_projection_mat ( CoordinateSystem  cs = CS_default) const [inline]

This computes a transform matrix that performs the orthographic transform defined by the frustum, accordinate to the indicated coordinate system.

Definition at line 310 of file frustum.h.

LMatrix4d LFrustumd::get_perspective_projection_mat ( CoordinateSystem  cs = CS_default) const [inline]

This computes a transform matrix that performs the perspective transform defined by the frustum, accordinate to the indicated coordinate system.

Definition at line 248 of file frustum.h.

void LFrustumd::make_ortho ( double  fnear,
double  ffar 
) [inline]

Behaves like gluOrtho.

Definition at line 132 of file frustum.h.

void LFrustumd::make_ortho ( double  fnear,
double  ffar,
double  l,
double  r,
double  t,
double  b 
) [inline]

Behaves like gluOrtho.

Definition at line 147 of file frustum.h.

void LFrustumd::make_ortho_2D ( double  l,
double  r,
double  t,
double  b 
) [inline]

Sets up a two-dimensional orthographic frustum.

Definition at line 123 of file frustum.h.

void LFrustumd::make_ortho_2D ( ) [inline]

Sets up a two-dimensional orthographic frustum.

Definition at line 113 of file frustum.h.

void LFrustumd::make_perspective_hfov ( double  hfov,
double  aspect,
double  fnear,
double  ffar 
) [inline]

Behaves like gluPerspective (Aspect = width/height, Yfov in degrees) aspect +------------+ | | 1 | | yfov | | +------------+.

-------+------ \ | / \ | / \ | / \ | / \ | / \|/ W yfov

Definition at line 180 of file frustum.h.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations