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 friend class Window;
21
22 public:
26 virtual ~WindowBindable() noexcept;
27
28 protected:
32 WindowBindable() noexcept;
33
38
42 virtual WindowBindable& operator=(WindowBindable&&) noexcept;
43
47 WindowBindable(const WindowBindable&) noexcept;
48
52 virtual WindowBindable& operator=(const WindowBindable&) noexcept;
53
59 void bind_window(SDL_Window* window) noexcept;
60
61 protected:
65 SDL_Window* m_window;
66 };
67} // namespace galaxy
68
69#endif
Binds the mouse to the window.
virtual ~WindowBindable() noexcept
Virtual destructor.
SDL_Window * m_window
Pointer to SDL_Window handle.
void bind_window(SDL_Window *window) noexcept
Bind SDL3 window to this object.
RAII Window. Handles events, input & display.
Definition Window.hpp:33
Animated.cpp galaxy.
Definition Animated.cpp:16