Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
23
24
25class QPainter;
27class Q_OPENGL_EXPORT QOpenGLCustomShaderStage
28{
29 Q_DECLARE_PRIVATE(QOpenGLCustomShaderStage)
30public:
34
35 void setUniformsDirty();
36
37 bool setOnPainter(QPainter*);
38 void removeFromPainter(QPainter*);
39 QByteArray source() const;
40
41 void setInactive();
42protected:
43 void setSource(const QByteArray&);
44
45private:
47
48 Q_DISABLE_COPY_MOVE(QOpenGLCustomShaderStage)
49};
50
51
53
54
55#endif
\inmodule QtCore
Definition qbytearray.h:57
virtual void setUniforms(QOpenGLShaderProgram *)
The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source