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 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | namespace Qt3DRender { |
23 | class QAbstractTexture; |
24 | class QEffect; |
25 | class QTechnique; |
26 | class QParameter; |
27 | class QRenderPass; |
28 | class QShaderProgram; |
29 | class QBlendEquation; |
30 | class QBlendEquationArguments; |
31 | class QDepthTest; |
32 | |
33 | } // namespace Qt3DRender |
34 | |
35 | namespace Qt3DExtras { |
36 | |
37 | class QText2DMaterial; |
38 | |
39 | class QText2DMaterialPrivate : public Qt3DRender::QMaterialPrivate |
40 | { |
41 | public: |
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 | |
71 | QT_END_NAMESPACE |
72 | |
73 | #endif // QT3DEXTRAS_QTEXT2DMATERIAL_P_P_H |
74 |