A 2D painter.
More...
#include <Painter2D.h>
|
| | Painter2D (Shader *shaders) |
| | Constructor. More...
|
| |
| | ~Painter2D () |
| | Destructor. More...
|
| |
| void | drawLine (QVector2D point1, QVector2D point2, QVector3D color, float thickness, float alpha) |
| | Draw line. More...
|
| |
| void | drawLineStrip (std::vector< QVector2D > points, QVector3D color, float thickness, float alpha) |
| | Draw line strip. More...
|
| |
| void | drawBezier (QVector2D point1, QVector2D point2, QVector2D controlpoint1, QVector2D controlpoint2, QVector3D color, float thickness, float alpha) |
| | Draw bezier. More...
|
| |
A 2D painter.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ Painter2D()
| Painter2D::Painter2D |
( |
Shader * |
shaders | ) |
|
Constructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| [in,out] | shaders | If non-null, the shaders. |
◆ ~Painter2D()
| Painter2D::~Painter2D |
( |
| ) |
|
Destructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ drawBezier()
| void Painter2D::drawBezier |
( |
QVector2D |
point1, |
|
|
QVector2D |
point2, |
|
|
QVector2D |
controlpoint1, |
|
|
QVector2D |
controlpoint2, |
|
|
QVector3D |
color, |
|
|
float |
thickness, |
|
|
float |
alpha |
|
) |
| |
Draw bezier.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| point1 | The first point. |
| point2 | The second point. |
| controlpoint1 | The first controlpoint. |
| controlpoint2 | The second controlpoint. |
| color | The color. |
| thickness | The thickness. |
| alpha | The alpha. |
◆ drawLine()
| void Painter2D::drawLine |
( |
QVector2D |
point1, |
|
|
QVector2D |
point2, |
|
|
QVector3D |
color, |
|
|
float |
thickness, |
|
|
float |
alpha |
|
) |
| |
Draw line.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| point1 | The first point. |
| point2 | The second point. |
| color | The color. |
| thickness | The thickness. |
| alpha | The alpha. |
◆ drawLineStrip()
| void Painter2D::drawLineStrip |
( |
std::vector< QVector2D > |
points, |
|
|
QVector3D |
color, |
|
|
float |
thickness, |
|
|
float |
alpha |
|
) |
| |
Draw line strip.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| points | The points. |
| color | The color. |
| thickness | The thickness. |
| alpha | The alpha. |
The documentation for this class was generated from the following files: