GlistEngine
Loading...
Searching...
No Matches
gRectangle.h
Go to the documentation of this file.
1/*
2 * gRectangle.h
3 *
4 * Created on: 13 Tem 2021
5 * Author: oznur
6 */
7
8#ifndef GRAPHICS_PRIMITIVES_GRECTANGLE_H_
9#define GRAPHICS_PRIMITIVES_GRECTANGLE_H_
10
11#include "gMesh.h"
12
13class gRectangle: public gMesh {
14public:
16 gRectangle(float x, float y, float w, float h, bool isFilled);
17 ~gRectangle() override;
18
19 void setPoints(float x, float y, float w, float h, bool isFilled);
20
21 void draw() override;
22 void draw(float x, float y, float w, float h, bool isFilled);
23
24private:
25 std::vector<gVertex> verticessb;
26 std::vector<gIndex> indicessb;
27
28private:
29 void setRectanglePoints(float x, float y, float w, float h, bool isFilled);
30};
31
32
33#endif /* GRAPHICS_PRIMITIVES_GRECTANGLE_H_ */
Definition gMesh.h:27
Definition gRectangle.h:13
void draw() override
void setPoints(float x, float y, float w, float h, bool isFilled)
gRectangle(float x, float y, float w, float h, bool isFilled)
void draw(float x, float y, float w, float h, bool isFilled)
~gRectangle() override