diff options
author | wm4 <wm4@nowhere> | 2020-09-03 14:55:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-09-03 14:55:26 +0200 |
commit | 829775865dbd69db9211cd4b6b6c9b1e5ad82953 (patch) | |
tree | c1c0e9f7c88303ac8326db0fc2827a52b1c931b0 /libmpv/qml_direct/main.qml | |
parent | 9be9e0877cbfe1ec19d359464a9121db56f6b0ed (diff) | |
download | mpv-examples-829775865dbd69db9211cd4b6b6c9b1e5ad82953.tar.bz2 mpv-examples-829775865dbd69db9211cd4b6b6c9b1e5ad82953.tar.xz |
Remove examples which use the old opengl_cb API
I made an attempt to convert some of them, but in the end, meh, I can't
be bothered. Do it yourself if you care, PRs to restore any of these
example by using the render API might be accepted.
The qt_opengl example was converted before; just fixing some old
comments in it.
Fixes: #38
Diffstat (limited to 'libmpv/qml_direct/main.qml')
-rw-r--r-- | libmpv/qml_direct/main.qml | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/libmpv/qml_direct/main.qml b/libmpv/qml_direct/main.qml deleted file mode 100644 index a8a68d5..0000000 --- a/libmpv/qml_direct/main.qml +++ /dev/null @@ -1,62 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Controls 1.0 - -import mpvtest 1.0 - -Item { - width: 1280 - height: 720 - - MpvObject { - id: renderer - - // This object isn't real and not visible; it just renders into the - // background of the containing Window. - width: 0 - height: 0 - } - - MouseArea { - anchors.fill: parent - onClicked: renderer.command(["loadfile", "test.mkv"]) - } - - Rectangle { - id: labelFrame - anchors.margins: -50 - radius: 5 - color: "white" - border.color: "black" - opacity: 0.8 - anchors.fill: box - } - - Row { - id: box - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: 100 - - Text { - anchors.margins: 10 - wrapMode: Text.WordWrap - text: "QtQuick and mpv are both rendering stuff.\n - In this example, mpv is always in the background.\n - Click to load test.mkv" - } - - Column { - Button { - anchors.margins: 10 - text: "Reinit QQuickItem renderer (for testing opengl-cb uninit during playback)" - onClicked: renderer.reinitRenderer() - } - Button { - anchors.margins: 10 - text: "Cycle video" - onClicked: renderer.command(["cycle", "video"]) - } - } - } -} |