glVertex
5.5.2
|
camera convenience class More...
#include <glvertex_cam.h>
Public Member Functions | |
lgl_Cam () | |
ctor | |
void | setOrthographic (double left, double right, double bottom, double top, double front, double back) |
set camera type to orthographic | |
void | setPerspective (double fovy, double aspect, double nearp, double farp) |
set camera type to perspective | |
void | setPerspective (double fovy, double nearp, double farp) |
set camera type to perspective | |
void | setAspect (double aspect) |
set camera aspect | |
void | setEye (vec3 eye, vec3 lookat, vec3 up) |
set eye and lookat point and up vector | |
void | setEye (vec3 eye, vec3 lookat) |
set eye and lookat point | |
vec3 | getEye (bool left=true) const |
get eye point | |
vec3 | getEyeManip (bool left=true) const |
get manipulated eye point | |
vec3 | getLookAt () const |
get lookat point | |
vec3 | getDirection () const |
get viewing direction | |
vec3 | getRight () const |
get right vector | |
vec3 | getUp () const |
get up vector | |
vec3 | unprojectViewport (double x, double y) |
unproject viewport coordinate into view coordinate direction | |
vec3 | unprojectViewportToWorld (double x, double y) |
unproject viewport coordinate into world coordinate direction | |
bool | isVisible (const vec3 ¢er, double radius) |
bounding sphere visibility test | |
bool | isVisible (const vec3 ¢er, const vec3 &extent) |
bounding box visibility test | |
void | setStereoBase (double base) |
set stereo base | |
double | getStereoBase () const |
get stereo base | |
bool | isStereoCam () const |
is stereo cam? | |
void | useLeftEye (bool left=true) |
use left eye for stereo rendering | |
void | useRightEye (bool right=true) |
use right eye for stereo rendering | |
bool | isLeftEye () const |
is left eye? | |
bool | isRightEye () const |
is right eye? | |
mat4 | getProjectionMatrix () const |
get projection matrix | |
mat4 | getViewMatrix (bool left=true) const |
get viewing matrix | |
mat4 | getInverseViewMatrix (bool left=true) const |
get inverse viewing matrix | |
mat4 | getInverseTransposeViewMatrix (bool left=true) const |
get inverse transpose viewing matrix | |
mat4 | getViewProjectionMatrix (bool left=true) const |
get combined viewing and projection matrix | |
void | begin (bool left=true) const |
push viewing and projection matrix | |
void | end () const |
pop viewing and projection matrix | |
void | halt (bool yes=true) |
halt cam | |
void | resume (bool yes=true) |
resume cam | |
void | reset () |
reset cam manipulator | |
camera convenience class