diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-04 18:36:07 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-04 18:36:07 +0100 |
commit | 09535633913069f4653c270501059c38c2d09a99 (patch) | |
tree | 1bf8d22f96461ff0136e7876bfc8adebb306d94f /yage/yage.cpp | |
parent | 2f24449366139c71aa92f041bce15362fe11acba (diff) | |
download | YAGE-09535633913069f4653c270501059c38c2d09a99.tar.gz YAGE-09535633913069f4653c270501059c38c2d09a99.zip |
Adding a core component, and removing implementation from yage.h
Diffstat (limited to 'yage/yage.cpp')
-rw-r--r-- | yage/yage.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
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 <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#include "yage.h" - -#include <GLFW/glfw3.h> - -#include <iostream> -#include <stdexcept> - -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 |