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
WindowBindable.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_META_WINDOWBINDABLE_HPP_
9#define GALAXY_META_WINDOWBINDABLE_HPP_
10
11struct SDL_Window;
12
13namespace galaxy
14{
19 {
20 public:
24 virtual ~WindowBindable() noexcept;
25
26 protected:
30 WindowBindable() noexcept;
31
36
40 virtual WindowBindable& operator=(WindowBindable&&) noexcept;
41
45 WindowBindable(const WindowBindable&) noexcept;
46
50 virtual WindowBindable& operator=(const WindowBindable&) noexcept;
51
57 void bind_window() noexcept;
58
59 protected:
63 SDL_Window* m_window;
64 };
65} // namespace galaxy
66
67#endif
Allows you to bind a base class to the window.
void bind_window() noexcept
Bind SDL3 window to this object.
WindowBindable() noexcept
Constructor.
virtual WindowBindable & operator=(WindowBindable &&) noexcept
Move assignment operator.
virtual ~WindowBindable() noexcept
Virtual destructor.
SDL_Window * m_window
Pointer to SDL_Window handle.
Application.hpp galaxy.