1 #ifndef DALI_INTERNAL_RENDER_SAMPLER_H
2 #define DALI_INTERNAL_RENDER_SAMPLER_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/actors/sampling.h>
21 #include <dali/devel-api/rendering/sampler.h>
22 #include <dali/internal/render/renderers/render-sampler.h>
33 typedef Dali::FilterMode::Type FilterMode;
34 typedef Dali::WrapMode::Type WrapMode;
40 : mMinFilter( Dali::FilterMode::DEFAULT),
41 mMagFilter( Dali::FilterMode::DEFAULT ),
42 mUWrapMode( Dali::WrapMode::DEFAULT ),
43 mVWrapMode( Dali::WrapMode::DEFAULT )
52 * Set the filter modes for minify and magnify filters
53 * @param[in] bufferIndex The buffer index to use
54 * @param[in] minFilter The minify filter
55 * @param[in] magFilter The magnify filter
57 void SetFilterMode(FilterMode minFilter, FilterMode magFilter )
59 mMinFilter = minFilter;
60 mMagFilter = magFilter;
64 * @param[in] bufferIndex The buffer index to use
66 void SetWrapMode(WrapMode uWrap, WrapMode vWrap )
76 * @return The minify filter mode
78 virtual FilterMode GetMinifyFilterMode() const
85 * @return The magnify filter mode
87 virtual FilterMode GetMagnifyFilterMode() const
93 * Get the horizontal wrap mode
94 * @return The horizontal wrap mode
96 virtual WrapMode GetUWrapMode() const
102 * Get the vertical wrap mode
103 * @return The vertical wrap mode
105 virtual WrapMode GetVWrapMode() const
112 FilterMode mMinFilter; ///< The minify filter
113 FilterMode mMagFilter; ///< The magnify filter
114 WrapMode mUWrapMode; ///< The horizontal wrap mode
115 WrapMode mVWrapMode; ///< The vertical wrap mode
118 } // namespace Render
122 } // namespace Internal
126 #endif // DALI_INTERNAL_RENDER_SAMPLER_H