galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Polyline.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_SHAPES_POLYLINE_HPP_
9#define GALAXY_GRAPHICS_SHAPES_POLYLINE_HPP_
10
12#include "galaxy/meta/Memory.hpp"
13
14namespace galaxy
15{
16 namespace graphics
17 {
21 class Polyline final : public Shape
22 {
23 public:
27 Polyline();
28
33
38
42 virtual ~Polyline();
43
49 void create(const meta::vector<glm::vec2>& points);
50
56 [[nodiscard]]
57 const meta::vector<glm::vec2>& points() const;
58
59 private:
63 meta::vector<glm::vec2> m_points;
64 };
65 } // namespace graphics
66} // namespace galaxy
67
68#endif
An open looped line of points.
Definition Polyline.hpp:22
void create(const meta::vector< glm::vec2 > &points)
List of points to create a line from.
Definition Polyline.cpp:44
const meta::vector< glm::vec2 > & points() const
Get list of points.
Definition Polyline.cpp:66
Polyline & operator=(Polyline &&)
Move assignment operator.
Definition Polyline.cpp:29
virtual ~Polyline()
Destructor.
Definition Polyline.cpp:40
meta::vector< glm::vec2 > m_points
List of points.
Definition Polyline.hpp:63
A generic 2D shape.
Definition Shape.hpp:22
Animated.cpp galaxy.
Definition Animated.cpp:16