mystery/src/graphics/renderer.cpp
// in the Renderer constructor we just initialize the glew library.
in the Renderer constructor we just initialize the glew library.
in the Renderer constructor we just initialize the glew library .
Renderer::Renderer() {
			if (glewInit() != GLEW_OK) {
				std::cout << "An error ocurred when starting glew" << std::endl;
			}
			std::cout << "OpenGL version: " << glGetString(GL_VERSION) << std::endl;
		}
Renderer :: Renderer ( ) { if ( glewInit ( ) != GLEW_OK ) { std :: cout << " " << std :: endl ; } std :: cout << " " << glGetString ( GL_VERSION ) << std :: endl ; }
in the Renderer constructor we just initialize the glew library.
in the Renderer constructor we just initialize the glew library .
// IMPORTANT NOTE: This must be done inside a valid OpenGL Context !!!!