unlogic
Loading...
Searching...
No Matches
Shape.h
Go to the documentation of this file.
1
#ifndef UNLOGIC_SHAPE_H
2
#define UNLOGIC_SHAPE_H
3
4
#include <vector>
5
#include "
graphic/Color.h
"
6
#include "
graphic/Vertex.h
"
7
8
namespace
unlogic
9
{
10
class
Shape
11
{
12
protected
:
13
Color
color
=
Color::Green
;
14
std::vector<Vertex>
vertices
;
15
16
public
:
17
[[nodiscard]] std::vector<Vertex>
const
&
GetVertices
()
const
18
{
19
return
this->
vertices
;
20
}
21
};
22
}
// namespace unlogic
23
24
#endif
// UNLOGIC_SHAPE_H
Color.h
Vertex.h
unlogic::Shape
Definition
Shape.h:11
unlogic::Shape::GetVertices
std::vector< Vertex > const & GetVertices() const
Definition
Shape.h:17
unlogic::Shape::vertices
std::vector< Vertex > vertices
Definition
Shape.h:14
unlogic::Shape::color
Color color
Definition
Shape.h:13
unlogic
Definition
Compiler.h:18
unlogic::Color
Definition
Color.h:7
unlogic::Color::Green
static Color Green
Definition
Color.h:18
unlogic
src
graphic
shape
Shape.h
Generated by
1.9.8