1234567891011121314151617 |
- #include <iostream>
- #include <GL/glew.h>
- #include <GLFW/glfw3.h>
- #include "wrapper/GLFW.h"
- bool GLFW::init() {
- if(glfwInit()) {
- atexit([]() {
- glfwTerminate();
- });
- return false;
- }
- std::cout << "could not initialize GLFW\n";
- return true;
- }
|