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_QNORMALDIFFUSESPECULARMAPMATERIAL_P_H
5#define QT3DEXTRAS_QNORMALDIFFUSESPECULARMAPMATERIAL_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 {
23
24class QFilterKey;
25class QEffect;
26class QAbstractTexture;
27class QTechnique;
28class QParameter;
29class QShaderProgram;
30class QShaderProgramBuilder;
31class QRenderPass;
32
33} // namespace Qt3DRender
34
35namespace Qt3DExtras {
36
37class QNormalDiffuseSpecularMapMaterial;
38
39class QNormalDiffuseSpecularMapMaterialPrivate : public Qt3DRender::QMaterialPrivate
40{
41public:
42 QNormalDiffuseSpecularMapMaterialPrivate();
43
44 void init();
45
46 void handleAmbientChanged(const QVariant &var);
47 void handleDiffuseChanged(const QVariant &var);
48 void handleNormalChanged(const QVariant &var);
49 void handleSpecularChanged(const QVariant &var);
50 void handleShininessChanged(const QVariant &var);
51 void handleTextureScaleChanged(const QVariant &var);
52
53 Qt3DRender::QEffect *m_normalDiffuseSpecularEffect;
54 Qt3DRender::QAbstractTexture *m_diffuseTexture;
55 Qt3DRender::QAbstractTexture *m_normalTexture;
56 Qt3DRender::QAbstractTexture *m_specularTexture;
57 Qt3DRender::QParameter *m_ambientParameter;
58 Qt3DRender::QParameter *m_diffuseParameter;
59 Qt3DRender::QParameter *m_normalParameter;
60 Qt3DRender::QParameter *m_specularParameter;
61 Qt3DRender::QParameter *m_shininessParameter;
62 Qt3DRender::QParameter *m_textureScaleParameter;
63 Qt3DRender::QTechnique *m_normalDiffuseSpecularGL3Technique;
64 Qt3DRender::QTechnique *m_normalDiffuseSpecularGL2Technique;
65 Qt3DRender::QTechnique *m_normalDiffuseSpecularES2Technique;
66 Qt3DRender::QTechnique *m_normalDiffuseSpecularRHITechnique;
67 Qt3DRender::QRenderPass *m_normalDiffuseSpecularGL3RenderPass;
68 Qt3DRender::QRenderPass *m_normalDiffuseSpecularGL2RenderPass;
69 Qt3DRender::QRenderPass *m_normalDiffuseSpecularES2RenderPass;
70 Qt3DRender::QRenderPass *m_normalDiffuseSpecularRHIRenderPass;
71 Qt3DRender::QShaderProgram *m_normalDiffuseSpecularGL3Shader;
72 Qt3DRender::QShaderProgramBuilder *m_normalDiffuseSpecularGL3ShaderBuilder;
73 Qt3DRender::QShaderProgram *m_normalDiffuseSpecularGL2ES2Shader;
74 Qt3DRender::QShaderProgramBuilder *m_normalDiffuseSpecularGL2ES2ShaderBuilder;
75 Qt3DRender::QShaderProgram *m_normalDiffuseSpecularRHIShader;
76 Qt3DRender::QShaderProgramBuilder *m_normalDiffuseSpecularRHIShaderBuilder;
77 Qt3DRender::QFilterKey *m_filterKey;
78
79 Q_DECLARE_PUBLIC(QNormalDiffuseSpecularMapMaterial)
80};
81
82} // Qt3DExtras
83
84QT_END_NAMESPACE
85
86#endif // QT3DEXTRAS_QNORMALDIFFUSESPECULARMAPMATERIAL_P_H
87
88

source code of qt3d/src/extras/defaults/qnormaldiffusespecularmapmaterial_p.h