X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Factors%2Fsampling.h;h=e28516ac7a3f5ad53ebc7d1f5c58662999697868;hb=ef33338ef8e96ffcbc0131bd54aed039363325ab;hp=b1cc7213833237ce201ea721a2f95e9adcb14680;hpb=226a0a9c08f0b2ba78404e32db98195583f5d791;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/actors/sampling.h b/dali/public-api/actors/sampling.h old mode 100644 new mode 100755 index b1cc721..e28516a --- a/dali/public-api/actors/sampling.h +++ b/dali/public-api/actors/sampling.h @@ -2,7 +2,7 @@ #define __DALI_SAMPLING_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,23 +23,100 @@ namespace Dali { +/** + * @addtogroup dali_core_actors + * @{ + */ namespace FilterMode { /** - * @brief Texture filtering mode. - * @see Dali::RenderableActor::SetFilterMode() and Dali::RenderableActor::GetFilterMode() + * @brief Enumeration for texture filtering mode. + * @SINCE_1_0.0 */ enum Type { - NONE, ///< Use GL system defaults (minification NEAREST_MIPMAP_LINEAR, magnification LINEAR) - DEFAULT, ///< Use dali defaults (minification LINEAR, magnification LINEAR) - NEAREST, ///< Filter nearest - LINEAR ///< Filter linear + /** + * @brief Use GL defaults (minification NEAREST_MIPMAP_LINEAR, magnification LINEAR). + * @SINCE_1_0.0 + */ + NONE = 0, + + /** + * @brief Use Dali defaults (minification LINEAR, magnification LINEAR). + * @SINCE_1_0.0 + */ + DEFAULT, + + /** + * @brief Filter nearest. + * @SINCE_1_0.0 + */ + NEAREST, + + /** + * @brief Filter linear. + * @SINCE_1_0.0 + */ + LINEAR, + + /** + * @brief Chooses the mipmap that most closely matches the size of the pixel being + * textured and uses the GL_NEAREST criterion (the texture element closest to + * the specified texture coordinates) to produce a texture value. + * @SINCE_1_1.38 + */ + NEAREST_MIPMAP_NEAREST, + + /** + * @brief Chooses the mipmap that most closely matches the size of the pixel being textured + * and uses the GL_LINEAR criterion (a weighted average of the four texture elements + * that are closest to the specified texture coordinates) to produce a texture value. + * @SINCE_1_1.38 + */ + LINEAR_MIPMAP_NEAREST, + + /** + * @brief Chooses the two mipmaps that most closely match the size of the pixel being textured + * and uses the GL_NEAREST criterion (the texture element closest to the specified texture + * coordinates ) to produce a texture value from each mipmap. The final texture value is a + * weighted average of those two values. + * @SINCE_1_1.38 + */ + NEAREST_MIPMAP_LINEAR, + + /** + * @brief Chooses the two mipmaps that most closely match the size of the pixel being textured and + * uses the GL_LINEAR criterion (a weighted average of the texture elements that are closest + * to the specified texture coordinates) to produce a texture value from each mipmap. The final + * texture value is a weighted average of those two values. + * @SINCE_1_1.38 + */ + LINEAR_MIPMAP_LINEAR + }; } //namespace FilterMode +namespace WrapMode +{ +/** + * @brief Enumeration for Wrap mode. + * @SINCE_1_0.0 + */ +enum Type +{ + DEFAULT = 0, ///< Clamp to edge @SINCE_1_0.0 + CLAMP_TO_EDGE, ///< Clamp to edge @SINCE_1_0.0 + REPEAT, ///< Repeat @SINCE_1_0.0 + MIRRORED_REPEAT ///< Mirrored repeat @SINCE_1_0.0 +}; + +} //namespace WrapMode + +/** + * @} + */ } // namespace Dali #endif // __DALI_SAMPLING_H__