10 static bool is_initialized =
false;
11 return is_initialized;
14bool is_glew_initialized()
16 return ref_initialized();
21 static bool called_init =
false;
24 GLenum err = glewInit();
25 result = err == GLEW_OK;
27 std::cerr <<
"GLEW init error: " <<
28 glewGetErrorString(err) << std::endl;
31 ref_initialized() =
true;
42#ifdef REGISTER_SHADER_FILES
43#include <cgv/base/register.h>
44#include <cgv_gl_shader_inc.h>
bool ensure_glew_initialized()
initialize glew in the first call to this function and always return whether this was successful
this header is dependency free