if ( mAtlasManager.Add( bitmap, slot ) )
{
// A new atlas was created so set the texture set details for the atlas
Dali::Texture atlas = mAtlasManager.GetAtlasContainer( slot.mAtlasId );
TextureSet textureSet = TextureSet::New();
textureSet.SetTexture( 0u, atlas );
if ( mAtlasManager.Add( bitmap, slot ) )
{
// A new atlas was created so set the texture set details for the atlas
Dali::Texture atlas = mAtlasManager.GetAtlasContainer( slot.mAtlasId );
TextureSet textureSet = TextureSet::New();
textureSet.SetTexture( 0u, atlas );