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.h | |
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.h')
-rw-r--r-- | libmpv/qml_direct/main.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/libmpv/qml_direct/main.h b/libmpv/qml_direct/main.h deleted file mode 100644 index e73af34..0000000 --- a/libmpv/qml_direct/main.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef MPVRENDERER_H_ -#define MPVRENDERER_H_ - -#include <QtQuick/QQuickItem> - -#include <mpv/client.h> -#include <mpv/opengl_cb.h> -#include "../common/qthelper.hpp" - -class MpvRenderer : public QObject -{ - Q_OBJECT - mpv::qt::Handle mpv; - mpv_opengl_cb_context *mpv_gl; - QQuickWindow *window; - QSize size; - - friend class MpvObject; -public: - MpvRenderer(mpv::qt::Handle a_mpv, mpv_opengl_cb_context *a_mpv_gl); - virtual ~MpvRenderer(); -public slots: - void paint(); -}; - -class MpvObject : public QQuickItem -{ - Q_OBJECT - - mpv::qt::Handle mpv; - mpv_opengl_cb_context *mpv_gl; - MpvRenderer *renderer; - bool killOnce; - -public: - MpvObject(QQuickItem * parent = 0); - virtual ~MpvObject(); -public slots: - void command(const QVariant& params); - void sync(); - void swapped(); - void cleanup(); - void reinitRenderer(); -signals: - void onUpdate(); -private slots: - void doUpdate(); - void handleWindowChanged(QQuickWindow *win); -private: - static void on_update(void *ctx); -}; - -#endif |