From 34052b51e00c939a35294d7085cadb5111484dd3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 26 May 2018 13:20:47 +0200 Subject: Separate headers into compilation units --- src/glfw/guard.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/glfw/guard.h') 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 -#include - class GlfwGuard { private: bool _good = false; public: - GlfwGuard() { - _good = glfwInit(); - } - ~GlfwGuard() { - glfwTerminate(); - } + GlfwGuard(); + ~GlfwGuard(); - bool isGood() const { - return _good; - } + bool isGood() const; }; -- cgit v1.2.3