diff options
Diffstat (limited to 'geometry.h')
-rw-r--r-- | geometry.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/geometry.h b/geometry.h new file mode 100644 index 0000000..b29e41f --- /dev/null +++ b/geometry.h @@ -0,0 +1,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 |