/** --------------------------------------------------------------------------- * @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: %s\n" << description; } void init() { glfwSetErrorCallback(glfwErrorCallback); if (glfwInit() == GLFW_FALSE) { throw std::runtime_error("GLFW couldn't be initialised"); } } void quit() { glfwTerminate(); } } // namespace yage