aboutsummaryrefslogtreecommitdiff
path: root/geometry.h
blob: eb4e05d2e8343a192d3c93f9a92fe89ab50adbda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef GEOMETRY_H
#define GEOMETRY_H

#include <QSGGeometry>

// Circle
int calculateCircleVertexCount(float radius);
void updateCircleGeometry(QSGGeometry *geometry, float radius, float cx, float cy);

// Rect
void updateRectGeometry(QSGGeometry *geometry, float x, float y, float w, float h);

// Crosshair
void updateCrossHairGeometry(QSGGeometry *geometry,
                             float x,
                             float y,
                             float thickness,
                             float length);
#endif // GEOMETRY_H