summaryrefslogtreecommitdiffstats
path: root/src/render/lights/qabstractlight.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/lights/qabstractlight.cpp')
-rw-r--r--src/render/lights/qabstractlight.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/render/lights/qabstractlight.cpp b/src/render/lights/qabstractlight.cpp
index ea8fd13d6..a826654c7 100644
--- a/src/render/lights/qabstractlight.cpp
+++ b/src/render/lights/qabstractlight.cpp
@@ -53,6 +53,14 @@ namespace Qt3DRender
* \since 5.6
*/
+/*!
+ \enum QAbstractLight::Type
+
+ This enum type identifies the particular type of light.
+ \value PointLight
+ \value DirectionalLight
+ \value SpotLight
+*/
QAbstractLightPrivate::QAbstractLightPrivate(QAbstractLight::Type type)
: m_type(type)
@@ -79,6 +87,8 @@ Qt3DCore::QNodeCreatedChangeBasePtr QAbstractLight::createNodeCreationChange() c
/*!
\class Qt3DRender::QAbstractLight
\inmodule Qt3DRender
+ \brief Encapsulate a QAbstractLight object in a Qt 3D scene.
+ \since 5.6
*/
/*! \internal */
@@ -93,6 +103,11 @@ QAbstractLight::~QAbstractLight()
{
}
+/*!
+ \property Qt3DRender::QAbstractLight::type
+
+ Holds the current QAbstractLight type.
+*/
QAbstractLight::Type QAbstractLight::type() const
{
Q_D(const QAbstractLight);