Warning, file /plasma/kwin/src/cursordelegate_opengl.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include <QObject> 0009 #include <memory> 0010 0011 #include "core/renderlayerdelegate.h" 0012 0013 namespace KWin 0014 { 0015 0016 class GLFramebuffer; 0017 class GLTexture; 0018 0019 class CursorDelegateOpenGL final : public QObject, public RenderLayerDelegate 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 ~CursorDelegateOpenGL() override; 0025 0026 void paint(RenderTarget *renderTarget, const QRegion ®ion) override; 0027 0028 private: 0029 std::unique_ptr<GLTexture> m_texture; 0030 std::unique_ptr<GLFramebuffer> m_framebuffer; 0031 }; 0032 0033 } // namespace KWin