diff options
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/manual/video-texture-qml/CMakeLists.txt | 44 | ||||
-rw-r--r-- | tests/manual/video-texture-qml/main.cpp | 20 | ||||
-rw-r--r-- | tests/manual/video-texture-qml/main.qml | 114 | ||||
-rw-r--r-- | tests/manual/video-texture-qml/video-texture-qml.pro | 16 | ||||
-rw-r--r-- | tests/manual/video-texture-qml/video-texture-qml.qrc | 5 |
6 files changed, 0 insertions, 200 deletions
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt index 068b08bf8..7ffc2da34 100644 --- a/tests/manual/CMakeLists.txt +++ b/tests/manual/CMakeLists.txt @@ -70,7 +70,6 @@ if(TARGET Qt::Quick) add_subdirectory(buffercapture-qml) add_subdirectory(render-qml-to-texture) add_subdirectory(render-qml-to-texture-qml) - add_subdirectory(video-texture-qml) add_subdirectory(transforms-qml) add_subdirectory(layerfilter-qml) add_subdirectory(tessellation-modes) diff --git a/tests/manual/video-texture-qml/CMakeLists.txt b/tests/manual/video-texture-qml/CMakeLists.txt deleted file mode 100644 index 6050bef0d..000000000 --- a/tests/manual/video-texture-qml/CMakeLists.txt +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (C) 2022 The Qt Company Ltd. -# SPDX-License-Identifier: BSD-3-Clause - -# Generated from video-texture-qml.pro. - -##################################################################### -## video-texture-qml Binary: -##################################################################### - -qt_internal_add_manual_test(video-texture-qml - GUI - SOURCES - main.cpp - LIBRARIES - Qt::3DCore - Qt::3DInput - Qt::3DQuick - Qt::3DQuickExtras - Qt::3DQuickRender - Qt::3DRender - Qt::Gui - Qt::Qml - Qt::Quick -) - -# Resources: -set(video-texture-qml_resource_files - "main.qml" -) - -qt_internal_add_resource(video-texture-qml "video-texture-qml" - PREFIX - "/" - FILES - ${video-texture-qml_resource_files} -) - - -#### Keys ignored in scope 1:.:.:video-texture-qml.pro:<TRUE>: -# DISTFILES = <EMPTY> -# OTHER_FILES = "main.qml" - -## Scopes: -##################################################################### diff --git a/tests/manual/video-texture-qml/main.cpp b/tests/manual/video-texture-qml/main.cpp deleted file mode 100644 index e136f01ea..000000000 --- a/tests/manual/video-texture-qml/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -#include <Qt3DQuick/QQmlAspectEngine> -#include <QGuiApplication> -#include <QQmlEngine> -#include <QQmlContext> -#include <Qt3DQuickExtras/Qt3DQuickWindow> - -int main(int argc, char* argv[]) -{ - QGuiApplication app(argc, argv); - Qt3DExtras::Quick::Qt3DQuickWindow view; - - view.engine()->qmlEngine()->rootContext()->setContextProperty("_window", &view); - view.setSource(QUrl("qrc:/main.qml")); - view.show(); - - return app.exec(); -} diff --git a/tests/manual/video-texture-qml/main.qml b/tests/manual/video-texture-qml/main.qml deleted file mode 100644 index 5ea37641b..000000000 --- a/tests/manual/video-texture-qml/main.qml +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -import Qt3D.Core 2.0 -import Qt3D.Render 2.9 -import Qt3D.Input 2.0 -import QtQuick 2.2 as QQ2 -import QtQuick.Scene2D 2.9 -import QtQuick.Window 2.0 as QW2 -import Qt3D.Extras 2.9 -import QtMultimedia 5.6 as QMM -import QtQuick.Dialogs 1.0 - -Entity { - id: sceneRoot - - Camera { - id: camera - projectionType: CameraLens.PerspectiveProjection - fieldOfView: 45 - aspectRatio: _window.width / _window.height - nearPlane : 0.1 - farPlane : 1000.0 - position: Qt.vector3d( 0.0, 0.0, 3.0 ) - upVector: Qt.vector3d( 0.0, 1.0, 0.0 ) - viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 ) - } - - Scene2D { - output: RenderTargetOutput { - attachmentPoint: RenderTargetOutput.Color0 - texture: Texture2D { - id: offscreenTexture - width: 1024 - height: 1024 - format: Texture.RGBA8_UNorm - generateMipMaps: false - magnificationFilter: Texture.Linear - minificationFilter: Texture.Linear - wrapMode { - x: WrapMode.ClampToEdge - y: WrapMode.ClampToEdge - } - } - } - QQ2.Rectangle { - width: 400 - height: 300 - color: "green" - - QMM.MediaPlayer { - id: player - autoPlay: false - loops: QMM.MediaPlayer.Infinite - } - - QMM.VideoOutput { - id: videoOutput - source: player - anchors.fill: parent - } - } - } - - FirstPersonCameraController { - camera: camera - } - - components: [ - RenderSettings { - activeFrameGraph: - ForwardRenderer { - camera: camera - } - }, - InputSettings {} - ] - - CuboidMesh { - id: mesh - } - - Entity { - id: entity - - property Transform transform: Transform { - scale: 1 - translation: Qt.vector3d(0,0,0) - } - - property Material material: TextureMaterial { - texture: offscreenTexture - } - - components: [mesh, material, transform] - } - - FileDialog { - id: fileDialog - title: "Please choose a video" - folder: shortcuts.home - onAccepted: { - visible = false - player.source = fileDialog.fileUrl - player.play() - } - onRejected: { - Qt.quit() - } - QQ2.Component.onCompleted: { - visible = true - } - } -} diff --git a/tests/manual/video-texture-qml/video-texture-qml.pro b/tests/manual/video-texture-qml/video-texture-qml.pro deleted file mode 100644 index 44da325aa..000000000 --- a/tests/manual/video-texture-qml/video-texture-qml.pro +++ /dev/null @@ -1,16 +0,0 @@ -!include( ../manual.pri ) { - error( "Couldn't find the manual.pri file!" ) -} - -QT += 3dquickextras 3dcore 3drender 3dinput 3dquick qml quick 3dquickrender - -SOURCES += main.cpp - -RESOURCES += \ - video-texture-qml.qrc - -OTHER_FILES += \ - main.qml - -DISTFILES += - diff --git a/tests/manual/video-texture-qml/video-texture-qml.qrc b/tests/manual/video-texture-qml/video-texture-qml.qrc deleted file mode 100644 index 5f6483ac3..000000000 --- a/tests/manual/video-texture-qml/video-texture-qml.qrc +++ /dev/null @@ -1,5 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>main.qml</file> - </qresource> -</RCC> |