GlistEngine
Loading...
Searching...
No Matches
gArc.h
Go to the documentation of this file.
1/*
2 * gArc.h
3 *
4 * Created on: 27 Jul 2022
5 * Author: burakmeydan
6 */
7
8#ifndef GRAPHICS_PRIMITIVES_gArc_H_
9#define GRAPHICS_PRIMITIVES_gArc_H_
10
11#include "gMesh.h"
12
13class gArc: public gMesh {
14public:
16 ~gArc() override;
17
18 void draw(float xCenter, float yCenter, float radius, bool isFilled, int numberOfSides = 60, float degree = 360.0f, float rotate = 360.0f);
19
20private:
21 void setArcPoints(float xCenter, float yCenter, float radius, bool isFilled, int numberOfSides = 60, float degree = 360.0f, float rotate = 360.0f);
22 std::vector<gVertex> vertices;
23 std::vector<gIndex> indices;
24};
25
26#endif /* GRAPHICS_PRIMITIVES_gArc_H_ */
Definition gArc.h:13
~gArc() override
void draw(float xCenter, float yCenter, float radius, bool isFilled, int numberOfSides=60, float degree=360.0f, float rotate=360.0f)
Definition gMesh.h:27
void rotate(const glm::quat &q)