KWin
Loading...
Searching...
No Matches
cursordelegate_opengl.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include <QObject>
9#include <memory>
10
12
13namespace KWin
14{
15
16class GLFramebuffer;
17class GLTexture;
18class Output;
19
20class CursorDelegateOpenGL final : public QObject, public RenderLayerDelegate
21{
22 Q_OBJECT
23
24public:
26 ~CursorDelegateOpenGL() override;
27
28 void paint(const RenderTarget &renderTarget, const QRegion &region) override;
29
30private:
31 Output *const m_output;
32 std::unique_ptr<GLTexture> m_texture;
33 std::unique_ptr<GLFramebuffer> m_framebuffer;
34};
35
36} // namespace KWin
void paint(const RenderTarget &renderTarget, const QRegion &region) override