#include <DelaunayTest2dRender.h>
Public Member Functions | |
| DelaunayTest2dRender (void) | |
| Constructor. | |
| ~DelaunayTest2dRender (void) | |
| Destructor. | |
| void | LoadPresetConfiguration (int width, int height) |
| Loads a default opengl configuration. | |
| void | BeginFrame (void) |
| Begins render frame. | |
| void | SetMaterial (float red, float green, float blue) |
| Sets the only material: emissive color. | |
| void | DrawPoints (const std::vector< Point > &points) |
| Draws a vector of points in 2d with a fixed point size. | |
| void | DrawLines (const std::vector< Line > &lines) |
| Draws a vector of lines in 2d. | |
| void | DrawCircles (const std::vector< Circle > &circles) |
| Draws a vector of circles in 2d. | |
| void | EndFrame (void) |
| Ends render frame. | |
| void DelaunayTest2dRender::DrawCircles | ( | const std::vector< Circle > & | circles | ) |
Draws a vector of circles in 2d.
| circles | the vector of circles |
Draw a circle
get the current angle
| void DelaunayTest2dRender::DrawLines | ( | const std::vector< Line > & | lines | ) |
Draws a vector of lines in 2d.
| lines | the vector of lines |
| void DelaunayTest2dRender::DrawPoints | ( | const std::vector< Point > & | points | ) |
Draws a vector of points in 2d with a fixed point size.
| points | the vector of points |
| void DelaunayTest2dRender::LoadPresetConfiguration | ( | int | width, | |
| int | height | |||
| ) |
Loads a default opengl configuration.
| width | render window width | |
| height | render window height |
| void DelaunayTest2dRender::SetMaterial | ( | float | red, | |
| float | green, | |||
| float | blue | |||
| ) |
Sets the only material: emissive color.
| red | red channel | |
| green | green channel | |
| blue | blue channel |
1.5.9