Process each RenderTask render-instruction separately
[platform/core/uifw/dali-core.git] / dali / integration-api / render-task-list-integ.h
1 #ifndef DALI_INTEGRATION_RENDER_TASK_LIST_H
2 #define DALI_INTEGRATION_RENDER_TASK_LIST_H
3
4 /*
5  * Copyright (c) 2019 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 // INTERNAL INCLUDES
22 #include <dali/public-api/render-tasks/render-task-list.h>
23
24 namespace Dali
25 {
26
27 class Actor;
28 class CameraActor;
29
30 namespace Integration
31 {
32
33 namespace RenderTaskList
34 {
35
36   /**
37    * @brief Helper function to create a new RenderTaskList object.
38    *
39    * A RenderTaskList is an ordered list of render tasks that describes
40    * how the Dali scene should be rendered.
41    *
42    * @return A handle to a newly allocated RenderTaskList
43    */
44   DALI_CORE_API Dali::RenderTaskList New();
45
46   /**
47    * @brief Helper function to create a new RenderTask.
48    *
49    * The created task will be appended to the list of render-tasks.
50    *
51    * @param[in] taskList    The render task list containing all the render-tasks.
52    * @param[in] sourceActor The actor and its children to be rendered for this render task.
53    * @param[in] cameraActor The actor from which the scene is viewed for this render task.
54    * @return A valid handle to a new RenderTask
55    */
56   DALI_CORE_API Dali::RenderTask CreateTask( Dali::RenderTaskList& taskList, Dali::Actor& sourceActor, Dali::CameraActor& cameraActor);
57
58 } // namespace RenderTaskList
59
60 } // namespace Integration
61
62 } // namespace Dali
63
64 #endif // DALI_INTEGRATION_RENDER_TASK_LIST_H