KrisLibrary  1.0.0
Classes | Functions
GLDraw Namespace Reference

Contains all definitions in the GLDraw package. More...

Classes

struct  ColorGradient
 
class  GeometryAppearance
 A class for coloring, texturing, and drawing meshes in OpenGL. More...
 
struct  GLColor
 An rgba color. More...
 
struct  GLDisplayList
 
class  GLFog
 
class  GLLight
 An OpenGL light. More...
 
struct  GLMaterial
 An OpenGL material. More...
 
class  GLRenderToImage
 Allows for GL calls to draw to an image. More...
 
class  GLScreenshotProgram
 A plugin class that "automatically" saves a movie to disk in the form of PPM screenshots. More...
 
class  GLTexture1D
 1D texture data for use in OpenGL. More...
 
class  GLTexture2D
 2D texture data for use in OpenGL. More...
 
class  GLTextureObject
 A GL texture object class. Simplifies allocating and cleaning up texture objects. Usually you only need to interact with GLTexture[X]D and the texture management is handled for you. More...
 
class  GLView
 
class  TransformWidget
 
class  Widget
 Base class for a visual widget. More...
 
class  WidgetSet
 A container of sub-widgets. More...
 

Functions

void drawPoint (const Vector3 &pt)
 
void drawLineSegment (const Vector3 &a, const Vector3 &b)
 
void drawTriangle (const Vector3 &a, const Vector3 &b, const Vector3 &c)
 
void drawQuad (const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &d)
 
void drawWireCircle2D (const Vector2 &center, float radius, int numIncrements)
 
void drawWireCircle (const Vector3 &axis, float r, int numIncrements)
 
void drawWireSphere (float r, int numIncrements)
 
void drawOrientedWireSphere (float r, const Matrix4 &basis)
 
void drawWireArc (float r, const Vector3 &axis, const Vector3 &dir, float min, float max)
 
void drawWireCylinder (const Vector3 &h, Real r, int numSteps)
 
void drawWirePyramid (float l, float w, float h)
 
void drawWireBox (float l, float w, float h)
 
void drawWireBoxCorner (float l, float w, float h)
 
void drawOrientedWireBox (float l, float w, float h, const Matrix4 &basis)
 
void drawWireOctahedron (float l, float w, float h)
 
void drawWireBoundingBox (const Vector3 &a, const Vector3 &b)
 
void drawWireCone (const Vector3 &h, float r, int steps)
 
void drawWireConeFlipped (const Vector3 &h, float r, int steps)
 
void drawCircle2D (const Vector2 &center, float radius, int numIncrements)
 
void drawCircle (const Vector3 &axis, float r, int numIncrements)
 
void drawPyramid (float l, float w, float h)
 
void drawBox (float l, float w, float h)
 
void drawBoxCorner (float l, float w, float h)
 
void drawOrientedBox (float l, float w, float h, const Matrix4 &basis)
 
void drawBoundingBox (const Vector3 &a, const Vector3 &b)
 
void drawSphere (float r, int numSlices, int numStacks)
 
void drawArc (float r1, float r2, const Vector3 &axis, const Vector3 &dir, float min, float max)
 
void drawCylinder (const Vector3 &h, Real r, int steps)
 
void drawCone (const Vector3 &h, float r, int steps)
 
void drawConeFlipped (const Vector3 &h, float r, int steps)
 
void drawCoords (float len)
 
void drawCoordWidget (float size, float thickness, float arrowSize, float arrowWidth)
 
void drawXYGrid (int n, float spacing)
 
void drawXZGrid (int n, float spacing)
 
void drawXYCheckerboard (int n, float spacing, float col1[4], float col2[4])
 
void drawOctahedron (float l, float w, float h)
 
void glTexCoord2v (const GLfloat *v)
 
void glTexCoord3v (const GLfloat *v)
 
void glTexCoord4v (const GLfloat *v)
 
void glNormal3v (const GLfloat *v)
 
void glVertex2v (const GLfloat *v)
 
void glVertex3v (const GLfloat *v)
 
void glVertex4v (const GLfloat *v)
 
void glRasterPos2v (const GLfloat *v)
 
void glRasterPos3v (const GLfloat *v)
 
void glRasterPos4v (const GLfloat *v)
 
void glLoadMatrix (const GLfloat *m)
 
void glMultMatrix (const GLfloat *m)
 
void glTranslate (const GLfloat *t)
 
void glTexCoord2v (const GLdouble *v)
 
void glTexCoord3v (const GLdouble *v)
 
void glTexCoord4v (const GLdouble *v)
 
void glNormal3v (const GLdouble *v)
 
void glVertex2v (const GLdouble *v)
 
void glVertex3v (const GLdouble *v)
 
void glVertex4v (const GLdouble *v)
 
void glRasterPos2v (const GLdouble *v)
 
void glRasterPos3v (const GLdouble *v)
 
void glRasterPos4v (const GLdouble *v)
 
void glLoadMatrix (const GLdouble *m)
 
void glMultMatrix (const GLdouble *m)
 
void glTranslate (const GLdouble *t)
 
void draw (const GeometricPrimitive2D &geom)
 
void draw (const GeometricPrimitive3D &geom)
 
void draw (const ConvexPolygon2D &geom)
 
void DrawGLTris (const Meshing::TriMesh &mesh)
 
void DrawGLEdges (const Meshing::TriMesh &mesh)
 
void DrawGLVerts (const Meshing::TriMesh &mesh)
 
void TransferTexture1D (GLTextureObject &obj, const Image &img)
 
void TransferTexture2D (GLTextureObject &obj, const Image &img)
 
void draw (const Geometry::AnyGeometry3D &geom)
 
void drawPoints (const Geometry::AnyGeometry3D &geom)
 
void drawFaces (const Geometry::AnyGeometry3D &geom)
 
void drawWorld (const Geometry::AnyCollisionGeometry3D &geom)
 draw the collision geometry in its world coordinates
 
void drawPointsWorld (const Geometry::AnyCollisionGeometry3D &geom)
 draw the collision geometry's points in its world coordinates
 
void drawFacesWorld (const Geometry::AnyCollisionGeometry3D &geom)
 draw the collision geometry's faces in its world coordinates
 
void drawExpanded (Geometry::AnyCollisionGeometry3D &geom, Math::Real p=-1)
 draw the expansion of the collision geometry, in its local coordinates
 

Detailed Description

Contains all definitions in the GLDraw package.