Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/util/glUtil.h File Reference

#include <GL/gl.h>
#include <GL/glu.h>

Include dependency graph for glUtil.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Classes

class  point3d
 A point in 3d space. More...

class  recColor
 A color; r/g/b are between 0...1. More...

class  recVec
 A generic vector (essentially the same as a point, but offers normalization). More...


Functions

recColor getColor (GLfloat v, GLfloat vmin, GLfloat vmax, int type)
 Given min/max values, get a color from a color schema.

void drawPyramid (GLfloat x, GLfloat y, GLfloat z, GLfloat height, GLfloat width)
 Draw a pyramid with the tip at the given location, given height, and width from center to edge as width.

void drawBox (GLfloat x, GLfloat y, GLfloat z, GLfloat radius)

Variables

const double TWOPI = 6.283185307179586476925287
const double PI = 3.141592653589793238462643
const double PID2 = PI/2
const double ROOT2D2 = 0.7071067811865475

Function Documentation

void drawBox GLfloat  x,
GLfloat  y,
GLfloat  z,
GLfloat  radius
 

void drawPyramid GLfloat  x,
GLfloat  y,
GLfloat  z,
GLfloat  height,
GLfloat  width
 

Draw a pyramid with the tip at the given location, given height, and width from center to edge as width.

recColor getColor GLfloat  v,
GLfloat  vmin,
GLfloat  vmax,
int  type
 

Given min/max values, get a color from a color schema.


Variable Documentation

const double PI = 3.141592653589793238462643 [static]
 

const double PID2 = PI/2 [static]
 

const double ROOT2D2 = 0.7071067811865475 [static]
 

const double TWOPI = 6.283185307179586476925287 [static]
 


Generated on Tue Aug 18 03:41:03 2009 for HOG by doxygen 1.3.4