Merge branch 'tizen' of platform/core/uifw/dali-core into devel/new_mesh
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-algorithms.h
1 #ifndef __DALI_INTERNAL_RENDER_ALGORITHMS_H__
2 #define __DALI_INTERNAL_RENDER_ALGORITHMS_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 // INTERNAL INCLUDES
22 #include <dali/internal/common/buffer-index.h>
23
24 namespace Dali
25 {
26 namespace Internal
27 {
28 class Context;
29
30 namespace SceneGraph
31 {
32 class RenderInstruction;
33 class Shader;
34 }
35
36 namespace Render
37 {
38
39 /**
40  * Process a render-instruction.
41  * @param[in] instruction The render-instruction to process.
42  * @param[in] context The GL context.
43  * @param[in] defaultShader The default shader.
44  * @param[in] buffer The current render buffer index (previous update buffer)
45  * @param[in] frameTime The elapsed time between the last two updates.
46  */
47 void ProcessRenderInstruction( const SceneGraph::RenderInstruction& instruction,
48                                Context& context,
49                                SceneGraph::Shader& defaultShader,
50                                BufferIndex bufferIndex,
51                                float frameTime );
52
53 } // namespace Render
54
55 } // namespace Internal
56
57 } // namespace Dali
58
59 #endif // __DALI_INTERNAL_RENDER_ALGORITHMS_H__