mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
86dd0f5df1
* some cleanup first * home sweet home * basic home screen * date * fix touch * fix mac * hide when onroad * box layout didn't do what i thought old-commit-hash: fed642c4ed2fd668360bef480da8f0b7a8559916
23 lines
511 B
C++
23 lines
511 B
C++
#include <QApplication>
|
|
|
|
#include "window.hpp"
|
|
#include "qt_window.hpp"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
QSurfaceFormat fmt;
|
|
#ifdef __APPLE__
|
|
fmt.setVersion(3, 2);
|
|
fmt.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
|
|
fmt.setRenderableType(QSurfaceFormat::OpenGL);
|
|
#else
|
|
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
|
|
#endif
|
|
QSurfaceFormat::setDefaultFormat(fmt);
|
|
|
|
QApplication a(argc, argv);
|
|
MainWindow w;
|
|
setMainWindow(&w);
|
|
a.installEventFilter(&w);
|
|
return a.exec();
|
|
}
|