#include <Utility.h>
Static Public Member Functions | |
static void | DrawQuad (const Point &p1, const Point &p2, const Point &p3, const Point &p4) |
static void | DrawBoundingBox (BoundingBox bounding_box) |
static void | SetColor (float red, float green, float blue, float alpha) |
static Point | GetPointFromBox (const BoundingBox &box, int index) |
Static Private Attributes | |
static float | color [4] = {1.0f, 1.0f, 1.0f, 0.0f} |
Some helpful utility routines.
Definition at line 17 of file Utility.h.
|
Draws a bounding box.
Definition at line 30 of file Utility.cpp. |
|
Draws a quad defined by four points.
Definition at line 3 of file Utility.cpp. |
|
Retrieves a corner of the bounding box. The point is specified by an index in the range from 0 to 7.
Definition at line 91 of file Utility.cpp. |
|
Sets the color used for drawing the quad or the bounding box.
Definition at line 81 of file Utility.cpp. |
|
Color used for drawing the quad and the bounding box. |