Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglcustomshaderstage_p.h
Go to the documentation of this file.
1
// Copyright (C) 2019 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
QOPENGL_CUSTOM_SHADER_STAGE_H
5
#
define
QOPENGL_CUSTOM_SHADER_STAGE_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtOpenGL
/
qtopenglglobal
.
h
>
19
#
include
<
QOpenGLShaderProgram
>
20
#
include
<
private
/
qglobal_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
25
class
QPainter;
26
class
QOpenGLCustomShaderStagePrivate
;
27
class
Q_OPENGL_EXPORT
QOpenGLCustomShaderStage
28
{
29
Q_DECLARE_PRIVATE(QOpenGLCustomShaderStage)
30
public
:
31
QOpenGLCustomShaderStage();
32
virtual
~QOpenGLCustomShaderStage();
33
virtual
void
setUniforms
(QOpenGLShaderProgram*) {}
34
35
void
setUniformsDirty
();
36
37
bool
setOnPainter
(
QPainter
*);
38
void
removeFromPainter
(
QPainter
*);
39
QByteArray
source
()
const
;
40
41
void
setInactive
();
42
protected
:
43
void
setSource(
const
QByteArray&);
44
45
private
:
46
QOpenGLCustomShaderStagePrivate* d_ptr;
47
48
Q_DISABLE_COPY_MOVE
(
QOpenGLCustomShaderStage
)
49
};
50
51
52
QT_END_NAMESPACE
53
54
55
#
endif
QOpenGLCustomShaderStagePrivate
Definition
qopenglcustomshaderstage.cpp:14
QOpenGLCustomShaderStagePrivate::QOpenGLCustomShaderStagePrivate
QOpenGLCustomShaderStagePrivate()
Definition
qopenglcustomshaderstage.cpp:16
QOpenGLCustomShaderStagePrivate::m_source
QByteArray m_source
Definition
qopenglcustomshaderstage.cpp:20
QOpenGLCustomShaderStagePrivate::m_manager
QPointer< QOpenGLEngineShaderManager > m_manager
Definition
qopenglcustomshaderstage.cpp:19
QOpenGLCustomShaderStage
Definition
qopenglcustomshaderstage_p.h:28
QOpenGLCustomShaderStage::setUniforms
virtual void setUniforms(QOpenGLShaderProgram *)
Definition
qopenglcustomshaderstage_p.h:33
QOpenGLCustomShaderStage::removeFromPainter
void removeFromPainter(QPainter *)
Definition
qopenglcustomshaderstage.cpp:66
QOpenGLCustomShaderStage::setUniformsDirty
void setUniformsDirty()
Definition
qopenglcustomshaderstage.cpp:41
QOpenGLCustomShaderStage::setInactive
void setInactive()
Definition
qopenglcustomshaderstage.cpp:91
QOpenGLCustomShaderStage::source
QByteArray source() const
Definition
qopenglcustomshaderstage.cpp:83
QOpenGLCustomShaderStage::setOnPainter
bool setOnPainter(QPainter *)
Definition
qopenglcustomshaderstage.cpp:48
QPaintEngine::QPainter
friend class QPainter
Definition
qpaintengine.h:219
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtbase
src
opengl
qopenglcustomshaderstage_p.h
Generated on Mon Mar 10 2025 00:43:42 for Qt by
1.13.2