aboutsummaryrefslogtreecommitdiff
path: root/src/glfw/guard.cc
blob: 5ba853ff0af9762c0a4573fdd98d4988fca0fe10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "guard.h"

#include <GL/glew.h>
#include <GLFW/glfw3.h>

GlfwGuard::GlfwGuard() {
	_good = glfwInit();
}

GlfwGuard::~GlfwGuard() {
	glfwTerminate();
}

bool GlfwGuard::isGood() const {
	return _good;
}