/* SPDX-FileCopyrightText: 2022 Vlad Zahorodnii SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include "scene/scene.h" namespace KWin { class GLFramebuffer; class GLTexture; class Output; class CursorDelegateOpenGL final : public QObject, public SceneDelegate { Q_OBJECT public: CursorDelegateOpenGL(Scene *scene, Output *output); ~CursorDelegateOpenGL() override; void paint(const RenderTarget &renderTarget, const QRegion ®ion) override; private: Output *const m_output; std::unique_ptr m_texture; std::unique_ptr m_framebuffer; }; } // namespace KWin