Debian Codegraph @

tests/manual/deferred-renderer-cpp/pointlightblock.cpp

raw symbols SCIP
1 // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #include "pointlightblock.h"
5
6 PointLightBlock::PointLightBlock(Qt3DCore::QNode *parent)
7 : Qt3DRender::QShaderData(parent)
8 {
9
10 }
11
12 PointLightBlock::~PointLightBlock()
13 {
14 }
15
16 QList<Qt3DRender::QAbstractLight *> PointLightBlock::lights() const
17 {
18 return m_lights;
19 }
20
21 void PointLightBlock::addLight(Qt3DRender::QAbstractLight *light)
22 {
23 m_lights.append(light);
24 emit lightsChanged();
25 }
26