49 #include "PostProcessorSobelPlugin.hh" 51 #include <QOpenGLContext> 55 QString PostProcessorSobelPlugin::checkOpenGL() {
57 QOpenGLContext* context = QOpenGLContext::currentContext();
61 QSurfaceFormat format = context->format();
63 if ( (format.majorVersion() < 3) ) {
64 return QString(
"Insufficient OpenGL Version! OpenGL 3.0 or higher required");
73 return name() + QString(
": No context available");
QString name()
Return a name for the plugin.