KWin
Loading...
Searching...
No Matches
src
scene
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
11
#include "
core/renderlayerdelegate.h
"
12
13
namespace
KWin
14
{
15
16
class
GLFramebuffer;
17
class
GLTexture;
18
class
Output;
19
20
class
CursorDelegateOpenGL
final :
public
QObject,
public
RenderLayerDelegate
21
{
22
Q_OBJECT
23
24
public
:
25
CursorDelegateOpenGL
(
Output
*output);
26
~CursorDelegateOpenGL
()
override
;
27
28
void
paint
(
const
RenderTarget
&renderTarget,
const
QRegion ®ion)
override
;
29
30
private
:
31
Output
*
const
m_output;
32
std::unique_ptr<GLTexture> m_texture;
33
std::unique_ptr<GLFramebuffer> m_framebuffer;
34
};
35
36
}
// namespace KWin
KWin::CursorDelegateOpenGL
Definition
cursordelegate_opengl.h:21
KWin::CursorDelegateOpenGL::~CursorDelegateOpenGL
~CursorDelegateOpenGL() override
Definition
cursordelegate_opengl.cpp:29
KWin::CursorDelegateOpenGL::CursorDelegateOpenGL
CursorDelegateOpenGL(Output *output)
Definition
cursordelegate_opengl.cpp:24
KWin::CursorDelegateOpenGL::paint
void paint(const RenderTarget &renderTarget, const QRegion ®ion) override
Definition
cursordelegate_opengl.cpp:33
KWin::Output
Definition
output.h:132
KWin::RenderLayerDelegate
Definition
renderlayerdelegate.h:28
KWin::RenderTarget
Definition
rendertarget.h:21
KWin
Definition
activation_test.cpp:20
renderlayerdelegate.h
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0