1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
26 class CompleteStatusManager;
31 class CameraController;
32 class RenderMessageDispatcher;
37 class NodeDataProvider;
40 * Abstract interface for the scene controller
56 virtual ~SceneController()
61 * Get a reusable renderer from the pool
62 * @param[in] dataProvider The node using this renderer
63 * @return The renderer
65 virtual ImageRenderer* NewImageRenderer( NodeDataProvider& dataProvider ) = 0;
68 * Return reusable renderer to the pool
69 * @param[in] The renderer
71 virtual void FreeImageRenderer( ImageRenderer& renderer ) = 0;
74 * Return the render message dispatcher
75 * @return A reference to the render message dispatcher
77 virtual RenderMessageDispatcher& GetRenderMessageDispatcher() = 0;
80 * Return the render queue
81 * @return A reference to the render queue
83 virtual RenderQueue& GetRenderQueue() = 0;
86 * Return the discard queue
87 * @return A reference to the discard queue
89 virtual DiscardQueue& GetDiscardQueue() = 0;
92 * Return the texture cache
93 * TODO: Remove this method when renderer's & shader's second stage initialization
94 * is done by RenderManager rather than by the attachments in the Update thread.
95 * DO NOT USE THIS IN THE UPDATE THREAD!
96 * @return A reference to the texture cache
98 virtual TextureCache& GetTextureCache() = 0;
101 * Return the CompleteStatusManager
102 * @return a reference to the complete status manager
104 virtual CompleteStatusManager& GetCompleteStatusManager() = 0;
108 // Undefined copy constructor.
109 SceneController( const SceneController& );
111 // Undefined assignment operator.
112 SceneController& operator=( const SceneController& );
115 } // namespace SceneGraph
117 } // namespace Internal
121 #endif // __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__