00001 #ifndef UTILITY_
00002 #define UTILITY_
00003
00004 #include <stdio.h>
00005 #include <windows.h>
00006 #include <GL/gl.h>
00007 #include <GL/glu.h>
00008 #include <GL/glut.h>
00009
00010 #include "Geometry.h"
00011
00017 class Utility
00018 {
00019 public:
00028 static void DrawQuad (const Point& p1, const Point& p2, const Point& p3, const Point& p4);
00029
00035 static void DrawBoundingBox (BoundingBox bounding_box);
00036
00045 static void SetColor (float red, float green, float blue, float alpha);
00046
00054 static Point GetPointFromBox (const BoundingBox & box, int index);
00055
00056 private:
00058 static float color[4];
00059 };
00060
00061 #endif