1 #ifndef DALI_INTERNAL_SCENE_GRAPH_NODE_DATA_PROVIDER_H
2 #define DALI_INTERNAL_SCENE_GRAPH_NODE_DATA_PROVIDER_H
5 * Copyright (c) 2019 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.
21 #include <dali/internal/render/data-providers/uniform-map-data-provider.h>
34 * An interface to provide data for a Renderer
36 class NodeDataProvider : UniformMapDataProvider
41 * Constructor. Nothing to do as a pure interface.
43 NodeDataProvider() = default;
46 * @param bufferIndex to use
47 * @return a reference to the model matrix
49 virtual const Matrix& GetModelMatrix( BufferIndex bufferIndex ) const = 0;
52 * @param bufferIndex to use
53 * @return a reference to the color
55 virtual const Vector4& GetRenderColor( BufferIndex bufferIndex ) const = 0;
58 * @copydoc Dali::Internal::SceneGraph::UniformMapDataProvider::GetUniformMapChanged()
60 bool GetUniformMapChanged( BufferIndex bufferIndex ) const override = 0;
63 * @copydoc Dali::Internal::SceneGraph::UniformMapDataProvider::GetUniformMap()
65 const CollectedUniformMap& GetUniformMap( BufferIndex bufferIndex ) const override = 0;
69 * Virtual destructor, this is an interface, no deletion through this interface
71 ~NodeDataProvider() override = default;
78 #endif // DALI_INTERNAL_SCENE_GRAPH_NODE_DATA_PROVIDER_H