45# pragma warning(disable: 4267 4311)
51#include <OpenMesh/Apps/ProgViewer/ProgViewerWidget.hh>
53#include <QApplication>
54#if QT_VERSION_MAJOR > 5
55#include <QOpenGLContext>
58int main(
int argc,
char **argv)
61 QApplication app(argc,argv);
63#if QT_VERSION_MAJOR < 6
64 if ( !QGLFormat::hasOpenGL() ) {
66 if ( QOpenGLContext::openGLModuleType() != QOpenGLContext::LibGL ) {
68 std::cerr <<
"This system has no OpenGL support.\n";
79 if (argc > 1) w.open_prog_mesh(argv[1]);
84 <<
"Press Minus : Coarsen mesh\n"
85 <<
" Plus : Refine mesh\n"
86 <<
" Home : Coarsen down to base mesh\n"
87 <<
" End : Refine up to finest mesh\n"