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
13
class
gCross
:
public
gMesh
{
14
public
:
15
gCross
();
16
~gCross
()
override
;
17
18
void
draw
(
float
x,
float
y,
float
width,
float
height,
float
thickness,
bool
isFilled);
19
20
private
:
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_ */
gCross
Definition
gCross.h:13
gCross::gCross
gCross()
gCross::draw
void draw(float x, float y, float width, float height, float thickness, bool isFilled)
gCross::~gCross
~gCross() override
gMesh
Definition
gMesh.h:27
gMesh.h
engine
graphics
primitives
gCross.h
Generated by
1.9.8