mirror of
https://github.com/ConjureETS/LOG750-LAB2.git
synced 2026-03-24 03:21:19 +00:00
27 lines
575 B
C++
27 lines
575 B
C++
#include "src/viewer/simpleViewer.h"
|
|
#include "src/window/mainwindow.h"
|
|
#include <QApplication>
|
|
#include <QDesktopWidget>
|
|
#include <QColorDialog>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
QDesktopWidget dw;
|
|
|
|
// Set the core profile and version of OpenGL shaders
|
|
QSurfaceFormat fmt;
|
|
fmt.setVersion(4, 0);
|
|
fmt.setProfile(QSurfaceFormat::CoreProfile);
|
|
QSurfaceFormat::setDefaultFormat(fmt);
|
|
|
|
MainWindow w;
|
|
|
|
// Instantiate and layout the viewer.
|
|
Viewer *v = new Viewer();
|
|
w.addViewer(v);
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|