1 #ifndef DALI_INTERNAL_SCENE_GRAPH_RENDER_ITEM_H
2 #define DALI_INTERNAL_SCENE_GRAPH_RENDER_ITEM_H
5 * Copyright (c) 2016 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>
25 #include <dali/internal/update/nodes/node.h>
42 * A RenderItem contains all the data needed for rendering
47 * Construct a new RenderItem
48 * @return A pointer to a new RenderItem.
50 static RenderItem* New();
53 * Non-virtual destructor; RenderItem is not suitable as a base class.
58 * Overriden delete operator.
59 * Deletes the RenderItem from its global memory pool
60 * @param[in] A pointer to the RenderItem to delete.
62 void operator delete( void* ptr );
65 Matrix mModelViewMatrix;
67 Render::Renderer* mRenderer;
69 const void* mTextureSet; //< Used for sorting only
76 * Private constructor. See RenderItem::New
80 // RenderItems should not be copied as they are heavy
81 RenderItem( const RenderItem& item );
82 RenderItem& operator = ( const RenderItem& item );
86 } // namespace SceneGraph
88 } // namespace Internal
92 #endif // DALI_INTERNAL_SCENE_GRAPH_RENDER_ITEM_H