GlistEngine
Loading...
Searching...
No Matches
gTriangle.h
Go to the documentation of this file.
1/*
2 * gTriangle.h
3 *
4 * Created on: Jul 28, 2022
5 * Author: emirhantasdeviren
6 */
7
8#ifndef GRAPHICS_PRIMITIVES_GTRIANGLE_H_
9#define GRAPHICS_PRIMITIVES_GTRIANGLE_H_
10
11#include "gMesh.h"
12
13class gTriangle: public gMesh {
14public:
16 ~gTriangle() override;
17
18 void draw(float px, float py, float qx, float qy, float rx, float ry, bool is_filled);
19
20private:
21 void setPoints(float px, float py, float qx, float qy, float rx, float ry, bool is_filled);
22
23 std::vector<gVertex> vertices;
24 std::vector<gIndex> indices;
25 gVertex vertex1;
26 gVertex vertex2;
27 gVertex vertex3;
28};
29
30#endif /* GRAPHICS_PRIMITIVES_GTRIANGLE_H_ */
Definition gMesh.h:27
Definition gTriangle.h:13
~gTriangle() override
void draw(float px, float py, float qx, float qy, float rx, float ry, bool is_filled)
Definition gVbo.h:14