Merge remote-tracking branch 'origin/tizen' 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 class TextureCache;
35 }
36
37 namespace Render
38 {
39
40 /**
41  * Process a render-instruction.
42  * @param[in] instruction The render-instruction to process.
43  * @param[in] context The GL context.
44  * @param[in] textureCache The texture cache used to get textures.
45  * @param[in] defaultShader The default shader.
46  * @param[in] buffer The current render buffer index (previous update buffer)
47  * @param[in] frameTime The elapsed time between the last two updates.
48  */
49 void ProcessRenderInstruction( const SceneGraph::RenderInstruction& instruction,
50                                Context& context,
51                                SceneGraph::TextureCache& textureCache,
52                                SceneGraph::Shader& defaultShader,
53                                BufferIndex bufferIndex,
54                                float frameTime );
55
56 } // namespace Render
57
58 } // namespace Internal
59
60 } // namespace Dali
61
62 #endif // __DALI_INTERNAL_RENDER_ALGORITHMS_H__