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 )
53 * Set the filter modes for minify and magnify filters
54 * @param[in] bufferIndex The buffer index to use
55 * @param[in] minFilter The minify filter
56 * @param[in] magFilter The magnify filter
58 void SetFilterMode(FilterMode minFilter, FilterMode magFilter )
60 mMinFilter = minFilter;
61 mMagFilter = magFilter;
65 * @param[in] bufferIndex The buffer index to use
67 void SetWrapMode(WrapMode uWrap, WrapMode vWrap )
77 * @return The minify filter mode
79 FilterMode GetMinifyFilterMode() const
86 * @return The magnify filter mode
88 FilterMode GetMagnifyFilterMode() const
94 * Get the horizontal wrap mode
95 * @return The horizontal wrap mode
97 WrapMode GetUWrapMode() const
103 * Get the vertical wrap mode
104 * @return The vertical wrap mode
106 WrapMode GetVWrapMode() const
113 FilterMode mMinFilter; ///< The minify filter
114 FilterMode mMagFilter; ///< The magnify filter
115 WrapMode mUWrapMode; ///< The horizontal wrap mode
116 WrapMode mVWrapMode; ///< The vertical wrap mode
120 } // namespace Render
122 } // namespace Internal
127 #endif // DALI_INTERNAL_RENDER_SAMPLER_H