aboutsummaryrefslogtreecommitdiff
path: root/src/glfw/guard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glfw/guard.h')
-rw-r--r--src/glfw/guard.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/glfw/guard.h b/src/glfw/guard.h
index 37d3ffb..f68954d 100644
--- a/src/glfw/guard.h
+++ b/src/glfw/guard.h
@@ -1,20 +1,11 @@
#pragma once
-#include <GL/glew.h>
-#include <GLFW/glfw3.h>
-
class GlfwGuard {
private:
bool _good = false;
public:
- GlfwGuard() {
- _good = glfwInit();
- }
- ~GlfwGuard() {
- glfwTerminate();
- }
+ GlfwGuard();
+ ~GlfwGuard();
- bool isGood() const {
- return _good;
- }
+ bool isGood() const;
};