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
Polygon.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_COMPONENTS_POLYGON_HPP_
9#define GALAXY_COMPONENTS_POLYGON_HPP_
10
12#include "galaxy/graphics/shapes/Polygon.hpp"
13
14namespace galaxy
15{
16 namespace components
17 {
21 class Polygon final : public fs::Serializable
22 {
23 public:
27 Polygon();
28
34 Polygon(const nlohmann::json& json);
35
40
45
49 virtual ~Polygon();
50
56 [[nodiscard]]
57 nlohmann::json serialize() override;
58
64 void deserialize(const nlohmann::json& json) override;
65
66 private:
70 Polygon& operator=(const Polygon&) = delete;
71
75 Polygon(const Polygon&) = delete;
76
77 public:
81 graphics::Polygon m_shape;
82 };
83 } // namespace components
84} // namespace galaxy
85
86#endif
graphics::Polygon m_shape
Shape.
Definition Polygon.hpp:81
Polygon & operator=(const Polygon &)=delete
Copy assignment operator.
Polygon & operator=(Polygon &&)
Move assignment operator.
Definition Polygon.cpp:33
Polygon(const Polygon &)=delete
Copy constructor.
nlohmann::json serialize() override
Serializes object.
Definition Polygon.cpp:47
virtual ~Polygon()
Destructor.
Definition Polygon.cpp:43
void deserialize(const nlohmann::json &json) override
Deserializes from object.
Definition Polygon.cpp:69
Allows a class to be serialized.
Timer.hpp galaxy.
Definition Async.hpp:17