Class that provides various utility functions for graphics.
More...
#include <graphics_utility.h>
Class that provides various utility functions for graphics.
◆ draw_arrow()
template<class T >
static void graphics_utility::draw_arrow |
( |
graphics_engine & |
g, |
|
|
const T * |
p0, |
|
|
const T * |
p1 |
|
) |
| |
|
inlinestatic |
Draw an arrow.
- Parameters
-
[in] | g | Graphics engine. |
[in] | p0 | Starting point. |
[in] | p1 | End point. |
◆ draw_circle()
template<class T >
static void graphics_utility::draw_circle |
( |
graphics_engine & |
g, |
|
|
const T * |
p, |
|
|
double |
r, |
|
|
ge::MODE |
mode, |
|
|
unsigned |
num_v = 20 |
|
) |
| |
|
inlinestatic |
Draw a circle.
- Parameters
-
[in] | g | Graphics engine. |
[in] | p | Pointer to position. |
[in] | r | Radius. |
[in] | mode | Drawing mode. |
[in] | num_v | Number of vertices. |
◆ draw_wired_box() [1/2]
template<class T >
static void graphics_utility::draw_wired_box |
( |
graphics_engine & |
g, |
|
|
const T * |
p0, |
|
|
const T * |
p1 |
|
) |
| |
|
inlinestatic |
Draw a wired box.
- Parameters
-
[in] | g | Graphics engine. |
[in] | p0 | Starting point. |
[in] | p1 | End point. |
◆ draw_wired_box() [2/2]
static void graphics_utility::draw_wired_box |
( |
graphics_engine & |
g, |
|
|
double |
scale = 1.0 |
|
) |
| |
|
inlinestatic |
Draw a wired box of a unit size.
- Parameters
-
The documentation for this class was generated from the following file: