1// Copyright (C) 2016 Paul Lemire
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "lightsource_p.h"
5#include <Qt3DRender/private/entity_p.h>
6#include <Qt3DRender/private/light_p.h>
7
8QT_BEGIN_NAMESPACE
9
10namespace Qt3DRender {
11
12namespace Render {
13
14LightSource::LightSource() : entity(nullptr)
15{
16}
17
18LightSource::LightSource(const Entity *entity, const std::vector<Light *> &lights)
19 : entity(entity)
20 , lights(lights)
21{
22}
23
24} // Render
25
26} // Qt3DRender
27
28QT_END_NAMESPACE
29

source code of qt3d/src/render/lights/lightsource.cpp