1 #ifndef __DALI_SAMPLING_H__
2 #define __DALI_SAMPLING_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.
22 #include <dali/public-api/common/dali-common.h>
27 * @addtogroup dali_core_actors
34 * @brief Enumeration for texture filtering mode.
40 * @brief Use GL defaults (minification NEAREST_MIPMAP_LINEAR, magnification LINEAR).
46 * @brief Use Dali defaults (minification LINEAR, magnification LINEAR).
52 * @brief Filter nearest.
58 * @brief Filter linear.
64 * @brief Chooses the mipmap that most closely matches the size of the pixel being
65 * textured and uses the GL_NEAREST criterion (the texture element closest to
66 * the specified texture coordinates) to produce a texture value.
69 NEAREST_MIPMAP_NEAREST,
72 * @brief Chooses the mipmap that most closely matches the size of the pixel being textured
73 * and uses the GL_LINEAR criterion (a weighted average of the four texture elements
74 * that are closest to the specified texture coordinates) to produce a texture value.
77 LINEAR_MIPMAP_NEAREST,
80 * @brief Chooses the two mipmaps that most closely match the size of the pixel being textured
81 * and uses the GL_NEAREST criterion (the texture element closest to the specified texture
82 * coordinates ) to produce a texture value from each mipmap. The final texture value is a
83 * weighted average of those two values.
86 NEAREST_MIPMAP_LINEAR,
89 * @brief Chooses the two mipmaps that most closely match the size of the pixel being textured and
90 * uses the GL_LINEAR criterion (a weighted average of the texture elements that are closest
91 * to the specified texture coordinates) to produce a texture value from each mipmap. The final
92 * texture value is a weighted average of those two values.
99 } //namespace FilterMode
104 * @brief Enumeration for Wrap mode.
109 DEFAULT = 0, ///< Clamp to edge @SINCE_1_0.0
110 CLAMP_TO_EDGE, ///< Clamp to edge @SINCE_1_0.0
111 REPEAT, ///< Repeat @SINCE_1_0.0
112 MIRRORED_REPEAT ///< Mirrored repeat @SINCE_1_0.0
115 } //namespace WrapMode
122 #endif // __DALI_SAMPLING_H__