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);
19
20private:
21 void drawNonFilled(float x, float y, float width, float height, float thickness);
22 void drawFilled(float x, float y, float width, float height, float thickness);
23
24 std::vector<gVertex> vertices;
25 std::vector<gIndex> indices;
26};
27
28#endif /* GRAPHICS_PRIMITIVES_GCROSS_H_ */
Definition gCross.h:13
void draw(float x, float y, float width, float height, float thickness, bool isFilled)
~gCross() override
Definition gMesh.h:27