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
Point.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_SHAPES_POINT_HPP_
9#define GALAXY_GRAPHICS_SHAPES_POINT_HPP_
10
12
13namespace galaxy
14{
15 namespace graphics
16 {
20 class Point final : public Shape
21 {
22 public:
26 Point();
27
31 Point(Point&&) = default;
32
36 Point& operator=(Point&&) = default;
37
41 virtual ~Point();
42
48 void create(const glm::vec2& pos);
49
55 [[nodiscard]]
56 const glm::vec2& pos() const;
57
58 private:
62 glm::vec2 m_pos;
63 };
64 } // namespace graphics
65} // namespace galaxy
66
67#endif
A single point.
Definition Point.hpp:21
virtual ~Point()
Destructor.
Definition Point.cpp:23
glm::vec2 m_pos
Position.
Definition Point.hpp:62
void create(const glm::vec2 &pos)
Initial point positon.
Definition Point.cpp:27
Point(Point &&)=default
Move constructor.
const glm::vec2 & pos() const
Get pos.
Definition Point.cpp:40
Point & operator=(Point &&)=default
Move assignment operator.
Point()
Constructor.
Definition Point.cpp:18
A generic 2D shape.
Definition Shape.hpp:22
Animated.cpp galaxy.
Definition Animated.cpp:16