// INTERNAL INCLUDES
#include <dali-toolkit/devel-api/image-loader/image-atlas.h>
+#include <dali-toolkit/internal/visuals/visual-url.h>
namespace Dali
{
ImageAtlasManager();
/**
+ * @brief Check whether the image of url could be Atlas or not.
+ *
+ * @param [in] url The URL of the resource image file to use.
+ * @param [in] size The width and height to fit the loaded image to.
+ * @return True if the image could be Atlas.
+ */
+ bool CheckAtlasAvailable(const VisualUrl& url, const ImageDimensions& size) const;
+
+ /**
* @brief Add an image to the atlas.
*
* @note To make the atlasing efficient, an valid size should be provided.
* @return The texture set containing the image.
*/
TextureSet Add(Vector4& textureRect,
- const std::string& url,
+ const VisualUrl& url,
ImageDimensions& size,
FittingMode::Type fittingMode = FittingMode::DEFAULT,
bool orientationCorrection = true,