17 QOpenGLVertexArrayObject vao;
20 std::vector<GLfloat> vertices;
21 std::vector<GLfloat> colors;
28 void drawLine(QVector2D point1, QVector2D point2, QVector3D color,
float thickness,
float alpha);
29 void drawLineStrip(std::vector<QVector2D> points, QVector3D color,
float thickness,
float alpha);
30 void drawBezier(QVector2D point1, QVector2D point2, QVector2D controlpoint1, QVector2D controlpoint2, QVector3D color,
float thickness,
float alpha);
A 2D painter.
Definition: Painter2D.h:15
~Painter2D()
Destructor.
Definition: Painter2D.cpp:29
Painter2D(Shader *shaders)
Constructor.
Definition: Painter2D.cpp:15
void drawLine(QVector2D point1, QVector2D point2, QVector3D color, float thickness, float alpha)
Draw line.
Definition: Painter2D.cpp:49
void drawLineStrip(std::vector< QVector2D > points, QVector3D color, float thickness, float alpha)
Draw line strip.
Definition: Painter2D.cpp:118
void drawBezier(QVector2D point1, QVector2D point2, QVector2D controlpoint1, QVector2D controlpoint2, QVector3D color, float thickness, float alpha)
Draw bezier.
Definition: Painter2D.cpp:184
A shader.
Definition: Shader.h:15