From 829775865dbd69db9211cd4b6b6c9b1e5ad82953 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 3 Sep 2020 14:55:26 +0200 Subject: 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 --- libmpv/qml_direct/main.h | 53 ------------------------------------------------ 1 file changed, 53 deletions(-) delete mode 100644 libmpv/qml_direct/main.h (limited to 'libmpv/qml_direct/main.h') 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 - -#include -#include -#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 -- cgit v1.2.3