GLFW.cpp 302 B

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