1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_RENDER_DATA_PROVIDER_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_RENDER_DATA_PROVIDER_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.
21 #include <dali/public-api/common/vector-wrapper.h>
22 #include <dali/public-api/rendering/renderer.h>
23 #include <dali/internal/render/data-providers/node-data-provider.h>
24 #include <dali/internal/render/data-providers/property-buffer-data-provider.h>
25 #include <dali/internal/render/data-providers/uniform-map-data-provider.h>
26 #include <dali/internal/render/renderers/render-sampler.h>
27 #include <dali/internal/render/renderers/render-texture.h>
34 struct BlendingOptions;
42 * Wraps all the data providers for the renderer. This allows the
43 * individual providers to change connections in the update thread without affecting
44 * the current render. It essentially provides double buffering of the
45 * provider accessor through the message system. It does not take ownership
48 class RenderDataProvider
51 typedef Dali::Vector< const PropertyBufferDataProvider* > VertexBuffers;
52 typedef std::vector< Render::Sampler* > Samplers;
56 * The RendererAttachment that creates this object will initialize the members
64 ~RenderDataProvider();
69 * Set the uniform map data provider
70 * @param[in] uniformMapDataProvider The uniform map data provider
72 void SetUniformMap(const UniformMapDataProvider& uniformMapDataProvider);
75 * Get the uniform map data provider
77 const UniformMapDataProvider& GetUniformMap() const;
80 * Set the shader data provider
81 * @param[in] shader The shader data provider
83 void SetShader( Shader& shader );
89 Shader& GetShader() const;
92 * Returns the list of samplers
93 * @return The list of samplers
95 Samplers& GetSamplers();
98 * Returns the list of Textures
99 * @return The list of Textures
101 std::vector<Render::Texture*>& GetTextures();
105 const UniformMapDataProvider* mUniformMapDataProvider;
107 std::vector<Render::Texture*> mTextures;
110 // Give Renderer access to our private data to reduce copying vectors on construction.
111 friend class Renderer;
118 #endif // __DALI_INTERNAL_SCENE_GRAPH_RENDER_DATA_PROVIDER_H__