aboutsummaryrefslogtreecommitdiff
path: root/geometry.h
blob: b29e41f794bab045292b589c517b19e28b310069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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);

#endif // GEOMETRY_H