2016-12-24 15:03:37 +00:00
|
|
|
#include "..\Header\MainWindow.h"
|
|
|
|
#include "..\Header\OglViewerWidget.h"
|
|
|
|
#include <QSurfaceFormat>
|
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
|
|
: QMainWindow(parent)
|
|
|
|
, ui(new Ui::MainWindowClass)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
|
QSurfaceFormat format;
|
|
|
|
format.setDepthBufferSize(24);
|
|
|
|
QSurfaceFormat::setDefaultFormat(format);
|
|
|
|
|
2016-12-31 11:31:38 +00:00
|
|
|
setCentralWidget(new OglViewerWidget(this));
|
2016-12-24 15:03:37 +00:00
|
|
|
|
2016-12-31 11:31:38 +00:00
|
|
|
setWindowIcon(QIcon(":/images/icon.ico"));
|
|
|
|
setWindowTitle("Mesh Viewer");
|
|
|
|
ui->statusBar->showMessage("pre-alpha");
|
2016-12-24 15:03:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|