diff --git a/src/application.cpp b/src/application.cpp index fa93fcf..60a37ec 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -10,7 +10,7 @@ int application::run() { try { filesystem::mount("bundle.zip", "/"); engine engine; - engine.create_window("Carimbo", 640, 480, true); + engine.create_window("Carimbo", 640, 480, false); engine.run(); } catch (const std::exception &e) { std::cerr << e.what() << std::endl; diff --git a/src/eventmanager.hpp b/src/eventmanager.hpp index 7a7e153..8f5b203 100644 --- a/src/eventmanager.hpp +++ b/src/eventmanager.hpp @@ -10,9 +10,8 @@ class event_manager : private noncopyable { event_manager() = default; ~event_manager() = default; - void add_listener(std::shared_pre listener); - - void remove_listener(std::function listener); -} + // void add_listener(std::shared_pre listener); + // void remove_listener(std::function listener); +}; #endif \ No newline at end of file diff --git a/src/noncopyable.hpp b/src/noncopyable.hpp index 5b1d742..1292c01 100644 --- a/src/noncopyable.hpp +++ b/src/noncopyable.hpp @@ -9,6 +9,8 @@ class noncopyable { noncopyable(const noncopyable &) = delete; noncopyable &operator=(const noncopyable &) = delete; + noncopyable(noncopyable &&) = default; + noncopyable &operator=(noncopyable &&) = default; }; #endif \ No newline at end of file diff --git a/src/window.cpp b/src/window.cpp index 69cb0df..6ce9e4f 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -6,7 +6,9 @@ window::window(std::string_view title, int32_t width, int32_t height, bool fulls } } -window::operator SDL_Window *() { return _window.get(); } +window::operator SDL_Window *() { + return _window.get(); +} const std::shared_ptr window::create_renderer() const { return std::make_shared(&*_window);