/* ---------------------------------------------------------------------------- * yage.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ #include "yage.h" #include #include namespace yage { void glfwErrorCallback(int, const char *description) { fprintf(stderr, "ERROR: %s\n", description); } void init() { glfwSetErrorCallback(glfwErrorCallback); if (!glfwInit()) { throw std::runtime_error("GLFW couldn't be initialised"); } } void quit() { glfwTerminate(); } } // namespace yage