src/Point.h

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * Point Object Header
00003  * Note: For use with the terrain quadtree
00004  */
00005 
00006 #if !defined( _POINT_H_ )
00007 
00008 #define _POINT_H_
00009 
00010 #include "GLee.h"
00011 
00012 // A point in 3d space
00013 class Point {
00014  public:
00015   // Generic constructor
00016   Point();
00017 
00018   // Copy contrustor
00019   Point(Point *copy);
00020 
00021   // Construct a point at (xIn, yIn, zIn);
00022   Point(GLfloat xIn, GLfloat yIn, GLfloat zIn);
00023 
00024   GLfloat m_x;
00025   GLfloat m_y;
00026   GLfloat m_z;
00027 
00028   // Dump out coords
00029   void Dump();
00030 
00031   // Just give the glVertex3f call for this point
00032   void Draw();
00033 
00034   // Calls glTranslatef with these coords
00035   void Translatef();
00036 
00037   // Average two points, store in result
00038   static void Average(Point *a, Point *b, Point *result);
00039 };
00040 
00041 #endif

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7