1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_RENDER_ITEM_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_RENDER_ITEM_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.
22 #include <dali/public-api/common/vector-wrapper.h>
23 #include <dali/public-api/actors/layer.h>
24 #include <dali/public-api/math/matrix.h>
38 typedef std::vector< RenderItem > RendererItemContainer;
41 * A render-item is a renderer & modelView matrix pair.
48 * Create a new render-item.
53 * Non-virtual destructor; RenderItem is not suitable as a base class.
58 * Reset the render-item.
63 * Retrieve the renderer.
64 * @return The renderer.
66 const Renderer* GetRenderer() const;
70 * @param[in] renderer The renderer
72 void SetRenderer( Renderer* renderer );
75 * Retrieve the modelView matrix.
76 * @return The modelView matrix.
78 Matrix& GetModelViewMatrix();
81 * Retrieve the modelView matrix.
82 * @return The modelView matrix.
84 const Matrix& GetModelViewMatrix() const;
87 * Retrieve the depth index
89 int GetDepthIndex() const
97 void SetDepthIndex( int depthIndex );
100 * Set if the RenderItem is opaque
101 * @param[in] isOpaque true if the RenderItem is opaque, false otherwise
103 void SetIsOpaque( bool isOpaque );
106 * Check if the RenderItem is opaque
107 * @return True if it is opaque, false otherwise
109 bool IsOpaque() const
116 // RenderItems should not be copied as they are heavy
117 RenderItem( const RenderItem& item );
118 RenderItem& operator = ( const RenderItem& item );
120 Matrix mModelViewMatrix;
126 } // namespace SceneGraph
128 } // namespace Internal
132 #endif // __DALI_INTERNAL_SCENE_GRAPH_RENDER_ITEM_H__