evan 2026.1.4
Evan
Loading...
Searching...
No Matches
GlfwContext.hpp
1/*
2** ETIB PROJECT, 2026
3** evan
4** File description:
5** GlfwContext
6*/
7
8#pragma once
9
10#include <memory>
11
12namespace evan::glfw
13{
27 {
28 public:
38
45 ~GlfwContext() = default;
46
47 GlfwContext(const GlfwContext &) = default;
48 GlfwContext(GlfwContext &&) noexcept = default;
49 GlfwContext &operator=(const GlfwContext &) = default;
50 GlfwContext &operator=(GlfwContext &&) noexcept = default;
51
52 private:
56 std::shared_ptr<void> _state;
57 };
58} // namespace evan::glfw
Reference-counted GLFW lifecycle guard.
~GlfwContext()=default
Releases the GLFW library.
GlfwContext()
Acquires the GLFW library.