forked from fhwedel-hoe/OpenRoadEd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
36 lines (28 loc) · 780 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <QtGui/QApplication>
#include "Qt/MainWindow.h"
#include "OpenDrive/OpenDrive.h"
#include "Osg/OSGMain.h"
/**
* Entry point
*/
int main(int argc, char *argv[])
{
// Creates the main application
QApplication app(argc, argv);
// Loads and displays the splash screen
QPixmap pixmap("Resources/splash.png");
QSplashScreen splash(pixmap,Qt::WindowStaysOnTopHint);
splash.show();
app.processEvents();
// Creates the OpenDrive structure
OpenDrive mOpenDrive;
// Creates the OSG object
OSGMain mOsgMain(&mOpenDrive);
// Creates the main window
MainWindow mainWin(&mOsgMain, &mOpenDrive);
mainWin.show();
// Hides the splash screen
splash.finish(&mainWin);
// Runs the application
return app.exec();
}