| 1 |
// Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
#include "mainwindow.h" |
| 5 |
|
| 6 |
#include <QApplication> |
| 7 |
#include <QSurfaceFormat> |
| 8 |
|
| 9 |
int main(int argc, char *argv[]) |
| 10 |
{ |
| 11 |
QApplication a(argc, argv); |
| 12 |
|
| 13 |
QSurfaceFormat format; |
| 14 |
format.setDepthBufferSize(24); |
| 15 |
format.setStencilBufferSize(8); |
| 16 |
format.setSamples(16); |
| 17 |
format.setStereo(true); |
| 18 |
QSurfaceFormat::setDefaultFormat(format); |
| 19 |
|
| 20 |
MainWindow w; |
| 21 |
w.show(); |
| 22 |
return a.exec(); |
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
#include "main.moc" |