summaryrefslogtreecommitdiffstats
path: root/src/render/lights/qspotlight_p.h
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-04-27 12:39:15 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-04-28 11:28:56 +0000
commit42bc3d429a470ec678948a19da1af5a67fe0080c (patch)
treeadf2a31505fc9f45ff0385e24490645fc7b82acc /src/render/lights/qspotlight_p.h
parent665afce109016328ce3702a9d116e250b250f6ef (diff)
QAbstractLight now inherits directly QComponent
We are turning the relationship between QAbstractLight and QShaderData from a "is-a" to a "has-a". For that we relay all the properties of the light to its internal shader data dynamic properties. Interestingly it also removes a couple of special handling for lights which aren't needed anymore. Change-Id: Ia937b8934f94ce318e02901d90ac340e172cbc75 Task-number: QTBUG-51489 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/lights/qspotlight_p.h')
-rw-r--r--src/render/lights/qspotlight_p.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/render/lights/qspotlight_p.h b/src/render/lights/qspotlight_p.h
index 19a132b34..0bb0cb80f 100644
--- a/src/render/lights/qspotlight_p.h
+++ b/src/render/lights/qspotlight_p.h
@@ -64,14 +64,7 @@ class QSpotLightPrivate : public QAbstractLightPrivate
public:
QSpotLightPrivate();
- float m_constantAttenuation;
- float m_linearAttenuation;
- float m_quadraticAttenuation;
- QVector3D m_localDirection;
- float m_cutOffAngle;
-
Q_DECLARE_PUBLIC(QSpotLight)
-
};
} // namespace Qt3DRender