X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Frendering%2Ftexture.h;h=11d973a2fe85611cb1a992f553ceeef31244b4b2;hb=27171a26226cd4758d41ca210112f53a0ee8d8e4;hp=8295868596f9264dd9f0ec0142608a081187b9d7;hpb=f24c14c80919972c2f41235f0ed5989d776b14a1;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/rendering/texture.h b/dali/public-api/rendering/texture.h index 8295868..11d973a 100644 --- a/dali/public-api/rendering/texture.h +++ b/dali/public-api/rendering/texture.h @@ -2,7 +2,7 @@ #define DALI_TEXTURE_H /* - * Copyright (c) 2020 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. @@ -86,6 +86,17 @@ public: static Texture New(TextureType::Type type, Pixel::Format format, uint32_t width, uint32_t height); /** + * @brief Creates a new Texture object with no informations. + * Texture will use Uploaded PixelData size and format. + * Before texture Upload is called, width, height and format return invalid values. + * + * @SINCE_2_2.34 + * @param[in] type The type of the texture + * @return A handle to a newly allocated Texture + */ + static Texture New(TextureType::Type type); + + /** * @brief Creates a new Texture object from a native image. * * @SINCE_1_1.43 @@ -143,7 +154,7 @@ public: * @SINCE_1_9.22 * @param[in] rhs A reference to the moved handle */ - Texture(Texture&& rhs); + Texture(Texture&& rhs) noexcept; /** * @brief Move assignment operator. @@ -152,7 +163,7 @@ public: * @param[in] rhs A reference to the moved handle * @return A reference to this handle */ - Texture& operator=(Texture&& rhs); + Texture& operator=(Texture&& rhs) noexcept; /** * @brief Uploads data to the texture from a PixelData object. @@ -209,6 +220,14 @@ public: */ uint32_t GetHeight() const; + /** + * @brief Returns the pixel format of the texture. + * + * @SINCE_2_1.29 + * @return The pixel format of the texture + */ + Pixel::Format GetPixelFormat() const; + public: /** * @brief The constructor.