1 #ifndef DALI_INTERNAL_SCENE_GRAPH_SAMPLER_DATA_PROVIDER_H
2 #define DALI_INTERNAL_SCENE_GRAPH_SAMPLER_DATA_PROVIDER_H
5 * Copyright (c) 2015 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.
20 #include <dali/public-api/shader-effects/sampler.h>
21 #include <dali/integration-api/resource-declarations.h>
22 #include <dali/internal/common/buffer-index.h>
31 class SamplerDataProvider
34 typedef Dali::Sampler::FilterMode FilterMode;
35 typedef Dali::Sampler::WrapMode WrapMode;
36 typedef Dali::Integration::ResourceId ResourceId;
46 * Get the sampler's texture unit uniform name
47 * @return The texture unit uniform name
49 virtual const std::string& GetTextureUnitUniformName() const = 0;
52 * Get the texture identity associated with the sampler
53 * @return The texture identity
55 virtual ResourceId GetTextureId( BufferIndex bufferIndex ) const = 0;
59 * @param[in] bufferIndex The buffer index to use
60 * @return The minify filter mode
62 virtual FilterMode GetMinifyFilterMode( BufferIndex bufferIndex ) const = 0;
66 * @param[in] bufferIndex The buffer index to use
67 * @return The magnify filter mode
69 virtual FilterMode GetMagnifyFilterMode( BufferIndex bufferIndex ) const = 0;
72 * Get the horizontal wrap mode
73 * @param[in] bufferIndex The buffer index to use
74 * @return The horizontal wrap mode
76 virtual WrapMode GetUWrapMode( BufferIndex bufferIndex ) const = 0;
79 * Get the vertical wrap mode
80 * @param[in] bufferIndex The buffer index to use
81 * @return The vertical wrap mode
83 virtual WrapMode GetVWrapMode( BufferIndex bufferIndex ) const = 0;
87 * No deletion through this interface
89 virtual ~SamplerDataProvider()
94 } // namespace SceneGraph
95 } // namespace Internal
98 #endif // DALI_INTERNAL_SCENE_GRAPH_SAMPLER_DATA_PROVIDER_H