oILAB
Loading...
Searching...
No Matches
oiViewer.cxx
Go to the documentation of this file.
1/* This file is part of MODEL, the Mechanics Of Defect Evolution Library.
2 *
3 * Copyright (C) 2017 by Giacomo Po <gpo@ucla.edu>.
4 *
5 * model is distributed without any warranty under the
6 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
7 */
8
9#include <QtWidgets/QApplication>
10#include <QVTKOpenGLNativeWidget.h>
11#include <oiViewerMainWindow.h>
12
13
14int main(int argc, char *argv[])
15{
16 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat()); // needed to ensure appropriate OpenGL context is created for VTK rendering.
17 QApplication a(argc, argv);
19 window.show();
20 return a.exec();
21}
22
int main(int argc, char *argv[])
Definition oiViewer.cxx:14