context_window.cpp is back
This commit is contained in:
parent
5a4bcd46bb
commit
2c6b505c56
3 changed files with 18 additions and 10 deletions
|
|
@ -11,17 +11,9 @@ namespace window {
|
|||
public:
|
||||
ContextWindow() noexcept = delete;
|
||||
|
||||
explicit ContextWindow(const GLFWerrorfun error_clbk) noexcept {
|
||||
glfwSetErrorCallback(error_clbk);
|
||||
if (glfwInit() == GLFW_FALSE) {
|
||||
init = false;
|
||||
}
|
||||
init = true;
|
||||
}
|
||||
explicit ContextWindow(const GLFWerrorfun error_clbk) noexcept;
|
||||
|
||||
~ContextWindow() noexcept {
|
||||
glfwTerminate();
|
||||
}
|
||||
~ContextWindow() noexcept;
|
||||
|
||||
[[nodiscard]] inline bool is_init() const { return init; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue