KWin
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
x
Variables
a
c
e
f
g
i
k
l
o
p
q
r
s
t
v
w
x
Typedefs
Enumerations
a
c
d
e
g
h
k
l
m
n
o
p
q
r
s
t
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
o
p
q
r
s
t
v
w
x
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
d
e
g
k
l
m
o
q
s
w
x
Variables
Typedefs
c
d
e
l
p
r
s
x
Enumerations
Macros
_
a
b
c
d
e
f
g
k
l
m
n
p
q
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
plugins
backgroundcontrast
contrastshader.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2010 Fredrik Höglund <fredrik@kde.org>
3
SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org>
4
5
SPDX-License-Identifier: GPL-2.0-or-later
6
*/
7
8
#pragma once
9
10
#include "
opengl/glutils.h
"
11
12
class
QMatrix4x4;
13
14
namespace
KWin
15
{
16
17
class
ContrastShader
18
{
19
public
:
20
ContrastShader
();
21
22
void
init
();
23
void
setColorMatrix
(
const
QMatrix4x4 &matrix);
24
void
setTextureMatrix
(
const
QMatrix4x4 &matrix);
25
void
setModelViewProjectionMatrix
(
const
QMatrix4x4 &matrix);
26
void
setOpacity
(
float
opacity
);
27
28
float
opacity
()
const
;
29
bool
isValid
()
const
;
30
31
void
bind
();
32
void
unbind
();
33
34
protected
:
35
void
setIsValid
(
bool
value);
36
void
reset
();
37
38
private
:
39
bool
m_valid;
40
std::unique_ptr<GLShader> m_shader;
41
int
m_mvpMatrixLocation;
42
int
m_textureMatrixLocation;
43
int
m_colorMatrixLocation;
44
int
m_opacityLocation;
45
float
m_opacity;
46
};
17
class
ContrastShader
{
…
};
47
48
}
// namespace KWin
KWin::ContrastShader
Definition
contrastshader.h:18
KWin::ContrastShader::bind
void bind()
Definition
contrastshader.cpp:80
KWin::ContrastShader::unbind
void unbind()
Definition
contrastshader.cpp:89
KWin::ContrastShader::setColorMatrix
void setColorMatrix(const QMatrix4x4 &matrix)
Definition
contrastshader.cpp:51
KWin::ContrastShader::setTextureMatrix
void setTextureMatrix(const QMatrix4x4 &matrix)
Definition
contrastshader.cpp:62
KWin::ContrastShader::reset
void reset()
Definition
contrastshader.cpp:30
KWin::ContrastShader::isValid
bool isValid() const
Definition
contrastshader.cpp:198
KWin::ContrastShader::setOpacity
void setOpacity(float opacity)
Definition
contrastshader.cpp:37
KWin::ContrastShader::setIsValid
void setIsValid(bool value)
Definition
contrastshader.cpp:193
KWin::ContrastShader::ContrastShader
ContrastShader()
Definition
contrastshader.cpp:23
KWin::ContrastShader::opacity
float opacity() const
Definition
contrastshader.cpp:46
KWin::ContrastShader::setModelViewProjectionMatrix
void setModelViewProjectionMatrix(const QMatrix4x4 &matrix)
Definition
contrastshader.cpp:71
KWin::ContrastShader::init
void init()
Definition
contrastshader.cpp:94
glutils.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0