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_QPHONGALPHAMATERIAL_P_H |
5 | #define QT3DEXTRAS_QPHONGALPHAMATERIAL_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 | |
24 | class QFilterKey; |
25 | class QEffect; |
26 | class QTechnique; |
27 | class QParameter; |
28 | class QShaderProgram; |
29 | class QShaderProgramBuilder; |
30 | class QRenderPass; |
31 | class QNoDepthMask; |
32 | class QBlendEquationArguments; |
33 | class QBlendEquation; |
34 | |
35 | } // namespace Qt3DRender |
36 | |
37 | namespace Qt3DExtras { |
38 | |
39 | class QPhongAlphaMaterial; |
40 | |
41 | class QPhongAlphaMaterialPrivate : public Qt3DRender::QMaterialPrivate |
42 | { |
43 | public: |
44 | QPhongAlphaMaterialPrivate(); |
45 | |
46 | void init(); |
47 | |
48 | void handleAmbientChanged(const QVariant &var); |
49 | void handleDiffuseChanged(const QVariant &var); |
50 | void handleSpecularChanged(const QVariant &var); |
51 | void handleShininessChanged(const QVariant &var); |
52 | |
53 | Qt3DRender::QEffect *m_phongEffect; |
54 | Qt3DRender::QParameter *m_ambientParameter; |
55 | Qt3DRender::QParameter *m_diffuseParameter; |
56 | Qt3DRender::QParameter *m_specularParameter; |
57 | Qt3DRender::QParameter *m_shininessParameter; |
58 | Qt3DRender::QTechnique *m_phongAlphaGL3Technique; |
59 | Qt3DRender::QTechnique *m_phongAlphaGL2Technique; |
60 | Qt3DRender::QTechnique *m_phongAlphaES2Technique; |
61 | Qt3DRender::QTechnique *m_phongAlphaRHITechnique; |
62 | Qt3DRender::QRenderPass *m_phongAlphaGL3RenderPass; |
63 | Qt3DRender::QRenderPass *m_phongAlphaGL2RenderPass; |
64 | Qt3DRender::QRenderPass *m_phongAlphaES2RenderPass; |
65 | Qt3DRender::QRenderPass *m_phongAlphaRHIRenderPass; |
66 | Qt3DRender::QShaderProgram *m_phongAlphaGL3Shader; |
67 | Qt3DRender::QShaderProgramBuilder *m_phongAlphaGL3ShaderBuilder; |
68 | Qt3DRender::QShaderProgram *m_phongAlphaGL2ES2Shader; |
69 | Qt3DRender::QShaderProgramBuilder *m_phongAlphaGL2ES2ShaderBuilder; |
70 | Qt3DRender::QShaderProgram *m_phongAlphaRHIShader; |
71 | Qt3DRender::QShaderProgramBuilder *m_phongAlphaRHIShaderBuilder; |
72 | Qt3DRender::QNoDepthMask *m_noDepthMask; |
73 | Qt3DRender::QBlendEquationArguments *m_blendState; |
74 | Qt3DRender::QBlendEquation *m_blendEquation; |
75 | Qt3DRender::QFilterKey *m_filterKey; |
76 | |
77 | Q_DECLARE_PUBLIC(QPhongAlphaMaterial) |
78 | }; |
79 | |
80 | } // Qt3DExtras |
81 | |
82 | QT_END_NAMESPACE |
83 | |
84 | #endif // QT3DEXTRAS_QPHONGALPHAMATERIAL_P_H |
85 | |
86 |