GLFW.cpp 272 B

123456789101112131415
  1. #include <iostream>
  2. #include <GL/glew.h>
  3. #include <GLFW/glfw3.h>
  4. #include "wrapper/GLFW.h"
  5. bool GLFW::init() {
  6. if(glfwInit()) {
  7. atexit([]() { glfwTerminate(); });
  8. return false;
  9. }
  10. std::cout << "could not initialize GLFW\n";
  11. return true;
  12. }