Updates following the PixelData change
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / image-atlas / image-atlas.h
index cef3eb7..5ef9195 100644 (file)
 #include <dali/public-api/images/image.h>
 #include <dali/public-api/images/image-operations.h>
 #include <dali/public-api/images/pixel.h>
+#include <dali/devel-api/images/pixel-data.h>
 
 namespace Dali
 {
 
 namespace Toolkit
 {
-
 namespace Internal DALI_INTERNAL
 {
 class ImageAtlas;
@@ -83,7 +83,7 @@ public:
   /**
    * @brief This assignment operator is required for (smart) pointer semantics.
    *
-   * @param [in] rhs  A reference to the copied handle
+   * @param [in] handle  A reference to the copied handle
    * @return A reference to this
    */
   ImageAtlas& operator=( const ImageAtlas& handle );
@@ -128,6 +128,14 @@ public:
                bool orientationCorrection = true );
 
   /**
+   * @brief Upload a pixel buffer to atlas
+   *
+   * @param [out] textureRect The texture area of the resource image in the atlas.
+   * @param [in] pixelData The pixel data.
+   */
+  bool Upload( Vector4& textureRect, PixelData pixelData );
+
+  /**
    * @brief Remove the image at the given rectangle.
    *
    * The rectangular area is marked unoccupied, so new image can be added to this area.