GLEW.cpp 277 B

1234567891011121314
  1. #include <iostream>
  2. #include <GL/glew.h>
  3. #include "wrapper/GLEW.h"
  4. bool GLEW::init() {
  5. GLenum err = glewInit();
  6. if(err != GLEW_OK) {
  7. std::cout << "could not initialize GLEW: " << glewGetErrorString(err) << "\n";
  8. return true;
  9. }
  10. return false;
  11. }