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