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
11
#include "
galaxy/fs/Serializable.hpp
"
12
#include "galaxy/graphics/Transform.hpp"
13
14
namespace
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
39
Transform
(
Transform
&&);
40
44
Transform
&
operator=
(
Transform
&&);
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
Serializable.hpp
galaxy::components::Transform
Defines the 2D transformation of an entity.
Definition
Transform.hpp:22
galaxy::components::Transform::Transform
Transform()
Constructor.
Definition
Transform.cpp:16
galaxy::components::Transform::operator=
Transform & operator=(const Transform &)=delete
Copy assignment operator.
galaxy::components::Transform::deserialize
void deserialize(const nlohmann::json &json) override
Deserializes from object.
Definition
Transform.cpp:61
galaxy::components::Transform::m_tf
graphics::Transform m_tf
Transformation object.
Definition
Transform.hpp:81
galaxy::components::Transform::~Transform
virtual ~Transform()
Destructor.
Definition
Transform.cpp:42
galaxy::components::Transform::Transform
Transform(const Transform &)=delete
Copy constructor.
galaxy::components::Transform::serialize
nlohmann::json serialize() override
Serializes object.
Definition
Transform.cpp:46
galaxy::components::Transform::operator=
Transform & operator=(Transform &&)
Move assignment operator.
Definition
Transform.cpp:32
galaxy::fs::Serializable
Allows a class to be serialized.
Definition
Serializable.hpp:23
galaxy
Timer.hpp galaxy.
Definition
Async.hpp:17
galaxy
src
galaxy
components
Transform.hpp
Generated on Sat Mar 1 2025 14:49:36 for galaxy by
1.12.0