class EE::Window::Engine::WindowContext

Scoped binding of the current native window and graphics context. Restores the previous binding when destroyed. Context objects are movable but cannot be copied.

#include <engine.hpp>

class WindowContext {
public:
    // construction

    WindowContext(const WindowContext&);
    WindowContext(WindowContext&& other);
    ~WindowContext();

    // methods

    WindowContext& operator=(const WindowContext&);
    WindowContext& operator=(WindowContext&&);
};