Removed redundant resource loading & rendering code
[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) 2016 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] defaultShader The default shader.
45  * @param[in] bufferIndex The current render buffer index (previous update buffer)
46  */
47 void ProcessRenderInstruction( const SceneGraph::RenderInstruction& instruction,
48                                Context& context,
49                                SceneGraph::Shader& defaultShader,
50                                BufferIndex bufferIndex );
51
52 } // namespace Render
53
54 } // namespace Internal
55
56 } // namespace Dali
57
58 #endif // DALI_INTERNAL_RENDER_ALGORITHMS_H