diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-07-08 12:51:59 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-07-12 19:14:20 +0000 |
commit | 008b1218476ada691eec9bb4e181b2415fc1f0f4 (patch) | |
tree | 3442e3fe9a8d1f2ba00768a85eb666e6390ed702 /examples/qt3d/transparency-qml-scene3d/main.cpp | |
parent | e12a0f0276521608dbbfdb03dfd0c089cd27eae2 (diff) |
Add transparency-qml-scene3d
Does the same thing as transparency-qml, allows to verify there's nothing
wrong with QtQuick 2 premultiplied alpha
Change-Id: Ia85a9759eace636e13d2e1b4a0e7f65fb96171e1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/transparency-qml-scene3d/main.cpp')
-rw-r--r-- | examples/qt3d/transparency-qml-scene3d/main.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/examples/qt3d/transparency-qml-scene3d/main.cpp b/examples/qt3d/transparency-qml-scene3d/main.cpp new file mode 100644 index 000000000..e65092a5b --- /dev/null +++ b/examples/qt3d/transparency-qml-scene3d/main.cpp @@ -0,0 +1,47 @@ +/**************************************************************************** +** +** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the Qt3D module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL3$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPLv3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or later as published by the Free +** Software Foundation and appearing in the file LICENSE.GPL included in +** the packaging of this file. Please review the following information to +** ensure the GNU General Public License version 2.0 requirements will be +** met: http://www.gnu.org/licenses/gpl-2.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <QGuiApplication> +#include <QQmlApplicationEngine> + +int main(int argc, char *argv[]) +{ + QGuiApplication app(argc, argv); + QQmlApplicationEngine engine; + engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); + + return app.exec(); +} |