Classes | |
class | CameraGL |
class | GLAttribScope |
utility class for caching and restoring GL attributes via the glPushAttrib/glPopAttrib calls. More... | |
class | GLMatrixScope |
utility class for keeping the gl matrix stack push/pop operations paired up correctly. More... | |
struct | GLVector4fv |
class | Quadric |
Enumerations | |
enum | eAxis { kAxis_X, kAxis_Y, kAxis_Z } |
enum | ePlane { kPlane_XY, kPlane_YZ, kPlane_ZX } |
enum | eStyle { kStyle_Outline, kStyle_Solid } |
Functions | |
void | drawArrow (eAxis axis) |
arrow is drawn with unlit colored lines. | |
void | drawAxes () |
void | drawBox (eStyle style) |
void | drawCylinder (eStyle style, eAxis axis) |
void | drawCylinder (eStyle style, const Vector &vBottom, const Vector &vTop, float fRadius) |
void | drawDisk (eStyle style, ePlane plane) |
disk is double-side | |
void | drawGrid (ePlane plane, unsigned int horizSubDivs, unsigned int vertSubDivs) |
grid is drawn with unlit colored lines. | |
void | drawQuad (eStyle style, ePlane plane) |
quad is double-sided. | |
void | drawSkeletonHand (const Leap::Hand &hand, const GLVector4fv &vBoneColor=GLVector4fv::One(), const GLVector4fv &vJointColor=GLVector4fv::One()) |
utility for drawing a skeleton API hand as seen in diagnostic visualizer | |
void | drawSphere (eStyle style) |
void | drawSphere (eStyle style, const Leap::Vector &vCenter, float fRadius) |
additional sphere/cylinder drawing utilities | |
Variables | |
static Quadric | s_quadric |
enum LeapUtilGL::eAxis |
all drawing utilities draw unit sized objects centered at the origin with no rotation in the current GL drawing context (orientation, scaling, lighting configuration, etc). use glTranslatef() to change position, glScalef() to change size. these object draw without any side effects to the GL state.
Definition at line 32 of file LeapUtilGL.h.
enum LeapUtilGL::ePlane |
Definition at line 34 of file LeapUtilGL.h.
enum LeapUtilGL::eStyle |
Definition at line 36 of file LeapUtilGL.h.
void LeapUtilGL::drawArrow | ( | eAxis | axis | ) |
arrow is drawn with unlit colored lines.
Definition at line 475 of file LeapUtilGL.cpp.
void LeapUtilGL::drawAxes | ( | ) |
Definition at line 519 of file LeapUtilGL.cpp.
void LeapUtilGL::drawBox | ( | eStyle | style | ) |
Definition at line 237 of file LeapUtilGL.cpp.
void LeapUtilGL::drawCylinder | ( | eStyle | style, |
eAxis | axis | ||
) |
Definition at line 375 of file LeapUtilGL.cpp.
void LeapUtilGL::drawCylinder | ( | eStyle | style, |
const Vector & | vBottom, | ||
const Vector & | vTop, | ||
float | fRadius | ||
) |
Definition at line 547 of file LeapUtilGL.cpp.
void LeapUtilGL::drawDisk | ( | eStyle | style, |
ePlane | plane | ||
) |
disk is double-side
Definition at line 431 of file LeapUtilGL.cpp.
void LeapUtilGL::drawGrid | ( | ePlane | plane, |
unsigned int | horizSubdivs, | ||
unsigned int | vertSubdivs | ||
) |
grid is drawn with unlit colored lines.
Definition at line 59 of file LeapUtilGL.cpp.
void LeapUtilGL::drawQuad | ( | eStyle | style, |
ePlane | plane | ||
) |
quad is double-sided.
Definition at line 149 of file LeapUtilGL.cpp.
void LeapUtilGL::drawSkeletonHand | ( | const Leap::Hand & | hand, |
const GLVector4fv & | vBoneColor, | ||
const GLVector4fv & | vJointColor | ||
) |
utility for drawing a skeleton API hand as seen in diagnostic visualizer
Definition at line 566 of file LeapUtilGL.cpp.
void LeapUtilGL::drawSphere | ( | eStyle | style | ) |
Definition at line 121 of file LeapUtilGL.cpp.
void LeapUtilGL::drawSphere | ( | eStyle | style, |
const Vector & | vCenter, | ||
float | fRadius | ||
) |
additional sphere/cylinder drawing utilities
Definition at line 537 of file LeapUtilGL.cpp.
Quadric LeapUtilGL::s_quadric [static] |
Definition at line 57 of file LeapUtilGL.cpp.