1// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
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 QT3DEXTRAS_QTEXT2DMATERIAL_P_P_H
5#define QT3DEXTRAS_QTEXT2DMATERIAL_P_P_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 for the convenience
12// of other Qt classes. 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 <Qt3DRender/private/qmaterial_p.h>
19
20QT_BEGIN_NAMESPACE
21
22namespace Qt3DRender {
23class QAbstractTexture;
24class QEffect;
25class QTechnique;
26class QParameter;
27class QRenderPass;
28class QShaderProgram;
29class QBlendEquation;
30class QBlendEquationArguments;
31class QDepthTest;
32
33} // namespace Qt3DRender
34
35namespace Qt3DExtras {
36
37class QText2DMaterial;
38
39class QText2DMaterialPrivate : public Qt3DRender::QMaterialPrivate
40{
41public:
42 QText2DMaterialPrivate();
43
44 Qt3DRender::QEffect *m_effect;
45 Qt3DRender::QAbstractTexture *m_distanceFieldTexture;
46 Qt3DRender::QParameter *m_textureParameter;
47 Qt3DRender::QParameter *m_textureSizeParameter;
48 Qt3DRender::QParameter *m_colorParameter;
49 Qt3DRender::QTechnique *m_gl3Technique;
50 Qt3DRender::QTechnique *m_gl2Technique;
51 Qt3DRender::QTechnique *m_es2Technique;
52 Qt3DRender::QTechnique *m_rhiTechnique;
53 Qt3DRender::QRenderPass *m_gl3RenderPass;
54 Qt3DRender::QRenderPass *m_gl2RenderPass;
55 Qt3DRender::QRenderPass *m_es2RenderPass;
56 Qt3DRender::QRenderPass *m_rhiRenderPass;
57 Qt3DRender::QShaderProgram *m_rhiShaderProgram;
58 Qt3DRender::QShaderProgram *m_gl3ShaderProgram;
59 Qt3DRender::QShaderProgram *m_gl2es2ShaderProgram;
60 Qt3DRender::QBlendEquation *m_blend;
61 Qt3DRender::QBlendEquationArguments *m_blendArgs;
62 Qt3DRender::QDepthTest *m_depthTest;
63
64 void init();
65
66 Q_DECLARE_PUBLIC(QText2DMaterial)
67};
68
69} // Qt3DExtras
70
71QT_END_NAMESPACE
72
73#endif // QT3DEXTRAS_QTEXT2DMATERIAL_P_P_H
74

source code of qt3d/src/extras/text/qtext2dmaterial_p_p.h