GlistEngine
Loading...
Searching...
No Matches
gCross.h
Go to the documentation of this file.
1/*
2 * gCross.h
3 *
4 * Created on: 24 Aug 2022
5 * Author: burakmeydan
6 */
7
8#ifndef GRAPHICS_PRIMITIVES_GCROSS_H_
9#define GRAPHICS_PRIMITIVES_GCROSS_H_
10
11#include "gMesh.h"
12
13class gCross: public gMesh {
14public:
16 ~gCross() override;
17
18 void draw(float x, float y, float width, float height, float thickness, bool isFilled, float rotateAngle = 0.0f, float pivotx = 0.5f, float pivoty = 0.5f);
19
20private:
21 void drawNonFilled(float x, float y, float width, float height, float thickness, float rotateAngle = 0.0f, float pivotx = 0.5f, float pivoty = 0.5f);
22 void drawFilled(float x, float y, float width, float height, float thickness, float rotateAngle = 0.0f, float pivotx = 0.5f, float pivoty = 0.5f);
23
24 std::vector<gVertex> vertices;
25 std::vector<gIndex> indices;
26};
27
28#endif /* GRAPHICS_PRIMITIVES_GCROSS_H_ */
void draw(float x, float y, float width, float height, float thickness, bool isFilled, float rotateAngle=0.0f, float pivotx=0.5f, float pivoty=0.5f)
~gCross() override