//#include <QApplication>#include <QGLWidget>#include <QGLContext>#include <iostream>//external Objective C functionvoid*select_3_2_mac_visual(GDHandlehandle);namespaceCGoGN{/// Use with GLWidget(...):QGLWidget(new Core3_2_context(QGLFormat::defaultFormat()))/// check with std::cout<<glGetString(GL_VERSION)<<std::endl;structCore3_2_context:publicQGLContext{Core3_2_context(constQGLFormat&format,QPaintDevice*device):QGLContext(format,device){}Core3_2_context(constQGLFormat&format):QGLContext(format){}virtualvoid*chooseMacVisual(GDHandlehandle){returnselect_3_2_mac_visual(handle);}};}