X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fimage-loader%2Ftexture-manager.h;h=46d3ef93ce0cad67d0e1f038c5383f05960ddf7b;hb=HEAD;hp=b88eab9f7c88a14fd00269a4bc5a847399c153b1;hpb=44bb6ae11e1c189104d9a8c9881bd5e524b398c0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/image-loader/texture-manager.h b/dali-toolkit/devel-api/image-loader/texture-manager.h index b88eab9..ff61916 100644 --- a/dali-toolkit/devel-api/image-loader/texture-manager.h +++ b/dali-toolkit/devel-api/image-loader/texture-manager.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_DEVEL_API_TEXTURE_MANAGER_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -20,28 +20,29 @@ // EXTERNAL INCLUDES #include +// INTERNAL INCLUDES +#include + namespace Dali { - namespace Toolkit { - /** * API to interface with the toolkit texture manager * Allows developers to add Textures through TextureSets to toolkit so that visuals can use them to render */ namespace TextureManager { - /** * @brief Add a Texture to texture manager * Toolkit keeps the Texture handle until RemoveTexture is called. * @note this method does not check for duplicates, * if same Texture is added multiple times, a different URL is returned each time * @param[in] texture the Texture to add + * @param[in] preMultiplied Whether this external texture preMultiplied or not. Default as false. * @return the Url string representing this texture */ -DALI_IMPORT_API std::string AddTexture( Texture& texture ); +DALI_TOOLKIT_API std::string AddTexture(Texture& texture, bool preMultiplied = false); /** * @brief Add a TextureSet to texture manager @@ -49,9 +50,10 @@ DALI_IMPORT_API std::string AddTexture( Texture& texture ); * @note this method does not check for duplicates, * if same TextureSet is added multiple times, a different URL is returned each time * @param[in] textureSet the TextureSet to add + * @param[in] preMultiplied Whether this external texture preMultiplied or not. Default as false. * @return the Url string representing this texture */ -DALI_IMPORT_API std::string AddTexture( TextureSet& textureSet ); +DALI_TOOLKIT_API std::string AddTexture(TextureSet& textureSet, bool preMultiplied = false); /** * @brief Removes a TextureSet from toolkit @@ -59,12 +61,12 @@ DALI_IMPORT_API std::string AddTexture( TextureSet& textureSet ); * @param[in] textureUrl to remove * @return the handle to the TextureSet or empty handle in case TextureSet is not found */ -DALI_IMPORT_API TextureSet RemoveTexture( const std::string& textureUrl ); +DALI_TOOLKIT_API TextureSet RemoveTexture(const std::string& textureUrl); -} +} // namespace TextureManager -} // Toolkit +} // namespace Toolkit -} // Dali +} // namespace Dali #endif // DALI_TOOLKIT_DEVEL_API_TEXTURE_MANAGER_H