scope_acquire_window_context.h 547 B

1234567891011121314151617181920212223
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. namespace Core::Frontend {
  7. class EmuWindow;
  8. /// Helper class to acquire/release window context within a given scope
  9. class ScopeAcquireWindowContext : NonCopyable {
  10. public:
  11. explicit ScopeAcquireWindowContext(Core::Frontend::EmuWindow& window);
  12. ~ScopeAcquireWindowContext();
  13. private:
  14. Core::Frontend::EmuWindow& emu_window;
  15. };
  16. } // namespace Core::Frontend