Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / dali / internal / update / node-attachments / scene-graph-light-attachment.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 // CLASS HEADER
18 #include <dali/internal/update/node-attachments/scene-graph-light-attachment.h>
19
20 // INTERNAL INCLUDES
21 #include <dali/public-api/common/dali-common.h>
22 #include <dali/internal/update/nodes/node.h>
23 #include <dali/internal/update/controllers/scene-controller.h>
24 #include <dali/internal/update/resources/resource-manager.h>
25 #include <dali/integration-api/debug.h>
26
27 using namespace std;
28
29 namespace Dali
30 {
31
32 namespace Internal
33 {
34
35 namespace SceneGraph
36 {
37
38 LightAttachment::LightAttachment()
39 : NodeAttachment(),
40   mLight(),
41   mUpdateRequired(false),
42   mLightController(NULL)
43 {
44 }
45
46 void LightAttachment::ConnectToSceneGraph( SceneController& sceneController, BufferIndex updateBufferIndex )
47 {
48   mLightController = &sceneController.GetLightController();
49 }
50
51 void LightAttachment::OnDestroy()
52 {
53   // do nothing
54 }
55
56 LightAttachment::~LightAttachment()
57 {
58 }
59
60 } // namespace SceneGraph
61
62 } // namespace Internal
63
64 } // namespace Dali