From 09535633913069f4653c270501059c38c2d09a99 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 4 May 2018 18:36:07 +0100 Subject: Adding a core component, and removing implementation from yage.h --- yage/yage.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 yage/yage.cpp (limited to 'yage/yage.cpp') diff --git a/yage/yage.cpp b/yage/yage.cpp deleted file mode 100644 index 68453181..00000000 --- a/yage/yage.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/** --------------------------------------------------------------------------- - * @file: yage.cpp - * - * Copyright (c) 2017 Yann Herklotz Grave - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#include "yage.h" - -#include - -#include -#include - -namespace yage -{ - -void glfwErrorCallback(int, const char *description) -{ - std::cerr << "Error: " << description; -} - -void init() -{ - glfwSetErrorCallback(glfwErrorCallback); - if (glfwInit() == GLFW_FALSE) { - throw std::runtime_error("GLFW couldn't be initialised"); - } -} - -void quit() -{ - glfwTerminate(); -} - -} // namespace yage -- cgit