33 #define stringify( x ) stringify_literal( x ) 34 #define stringify_literal( x ) # x 53 inline void errorCheckFunc (std::string file,
int line, std::string message =
"")
56 GLenum ErrorCheckValue = glGetError();
57 if (ErrorCheckValue != GL_NO_ERROR)
59 std::cerr <<
"GL error in " << file <<
" line " << line <<
" : " << gluErrorString(ErrorCheckValue) << std::endl;
60 std::cerr << message.c_str() << std::endl;
71 glewExperimental =
true;
72 GLenum glewInitResult = glewInit();
73 if (GLEW_OK != glewInitResult)
75 std::cerr <<
"Error: " << glewGetErrorString(glewInitResult) << std::endl;
81 std::cout <<
"GLEW INFO: OpenGL Version: " << glGetString(GL_VERSION) << std::endl << std::endl;
Definition: bufferobject.hpp:34
void errorCheckFunc(std::string file, int line, std::string message="")
GL error check method.
Definition: misc.hpp:53
void initGlew(void)
Initialize Glew.
Definition: misc.hpp:68