removal of shader inheritance, renderable actors now have shaders and there is a...
[platform/core/uifw/dali-core.git] / dali / internal / update / controllers / scene-controller.h
1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 namespace Dali
22 {
23
24 namespace Internal
25 {
26 class CompleteStatusManager;
27
28 namespace SceneGraph
29 {
30
31 class LightController;
32 class CameraController;
33 class RenderMessageDispatcher;
34 class RenderQueue;
35 class DiscardQueue;
36 class TextureCache;
37 class Shader;
38
39 /**
40  * Abstract interface for the scene controller
41  */
42 class SceneController
43 {
44 public:
45
46   /**
47    * Constructor
48    */
49   SceneController()
50   {
51   }
52
53   /**
54    * Destructor
55    */
56   virtual ~SceneController()
57   {
58   }
59
60   /**
61    * Get the light controller
62    * @return  reference to a light controller
63    */
64   virtual LightController& GetLightController() = 0;
65
66   /**
67    * Return the render message dispatcher
68    * @return A reference to the render message dispatcher
69    */
70   virtual RenderMessageDispatcher& GetRenderMessageDispatcher() = 0;
71
72   /**
73    * Return the render queue
74    * @return A reference to the render queue
75    */
76   virtual RenderQueue& GetRenderQueue() = 0;
77
78   /**
79    * Return the discard queue
80    * @return A reference to the discard queue
81    */
82   virtual DiscardQueue& GetDiscardQueue() = 0;
83
84   /**
85    * Return the texture cache
86    * TODO: Remove this method when renderer's & shader's second stage initialization
87    * is done by RenderManager rather than by the attachments in the Update thread.
88    * DO NOT USE THIS IN THE UPDATE THREAD!
89    * @return A reference to the texture cache
90    */
91   virtual TextureCache& GetTextureCache() = 0;
92
93   /**
94    * Return the CompleteStatusManager
95    * @return a reference to the complete status manager
96    */
97   virtual CompleteStatusManager& GetCompleteStatusManager() = 0;
98
99   /**
100    * Return the default shader
101    * @return pointer to the default shader
102    */
103   virtual Shader* GetDefaultShader() = 0;
104
105 private:
106
107   // Undefined copy constructor.
108   SceneController( const SceneController& );
109
110   // Undefined assignment operator.
111   SceneController& operator=( const SceneController& );
112 };
113
114 } // namespace SceneGraph
115
116 } // namespace Internal
117
118 } // namespace Dali
119
120 #endif // __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__