namespace Dali
{
-
namespace Toolkit
{
-
AtlasManager::AtlasManager()
{
}
return AtlasManager(internal.Get());
}
-AtlasManager::AtlasManager(Internal::AtlasManager *impl)
- : BaseHandle(impl)
+AtlasManager::AtlasManager(Internal::AtlasManager* impl)
+: BaseHandle(impl)
{
}
-AtlasManager::AtlasId AtlasManager::CreateAtlas( const AtlasManager::AtlasSize& size, Pixel::Format pixelformat )
+AtlasManager::AtlasId AtlasManager::CreateAtlas(const AtlasManager::AtlasSize& size, Pixel::Format pixelformat)
{
- return GetImplementation(*this).CreateAtlas( size, pixelformat );
+ return GetImplementation(*this).CreateAtlas(size, pixelformat);
}
-void AtlasManager::SetAddPolicy( AddFailPolicy policy )
+void AtlasManager::SetAddPolicy(AddFailPolicy policy)
{
- GetImplementation(*this).SetAddPolicy( policy );
+ GetImplementation(*this).SetAddPolicy(policy);
}
-bool AtlasManager::Add( const BufferImage& image,
- AtlasManager::AtlasSlot& slot,
- AtlasManager::AtlasId atlas )
+bool AtlasManager::Add(const PixelData& image,
+ AtlasManager::AtlasSlot& slot,
+ AtlasManager::AtlasId atlas)
{
- return GetImplementation(*this).Add( image, slot, atlas );
+ return GetImplementation(*this).Add(image, slot, atlas);
}
-bool AtlasManager::Remove( ImageId id )
+bool AtlasManager::Remove(ImageId id)
{
- return GetImplementation(*this).Remove( id );
+ return GetImplementation(*this).Remove(id);
}
-void AtlasManager::GenerateMeshData( ImageId id,
- const Vector2& position,
- Mesh2D& mesh,
- bool addReference )
+void AtlasManager::GenerateMeshData(ImageId id,
+ const Vector2& position,
+ Mesh2D& mesh,
+ bool addReference)
{
- GetImplementation(*this).GenerateMeshData( id,
- position,
- mesh,
- addReference );
+ GetImplementation(*this).GenerateMeshData(id,
+ position,
+ mesh,
+ addReference);
}
-Dali::Atlas AtlasManager::GetAtlasContainer( AtlasId atlas ) const
+Dali::Texture AtlasManager::GetAtlasContainer(AtlasId atlas) const
{
- return GetImplementation(*this).GetAtlasContainer( atlas );
+ return GetImplementation(*this).GetAtlasContainer(atlas);
}
-AtlasManager::AtlasId AtlasManager::GetAtlas( ImageId id )
+AtlasManager::AtlasId AtlasManager::GetAtlas(ImageId id)
{
- return GetImplementation(*this).GetAtlas( id );
+ return GetImplementation(*this).GetAtlas(id);
}
-const AtlasManager::AtlasSize& AtlasManager::GetAtlasSize( AtlasId atlas )
+const AtlasManager::AtlasSize& AtlasManager::GetAtlasSize(AtlasId atlas)
{
- return GetImplementation(*this).GetAtlasSize( atlas );
+ return GetImplementation(*this).GetAtlasSize(atlas);
}
-AtlasManager::SizeType AtlasManager::GetFreeBlocks( AtlasId atlas )
+AtlasManager::SizeType AtlasManager::GetFreeBlocks(AtlasId atlas)
{
- return GetImplementation(*this).GetFreeBlocks( atlas );
+ return GetImplementation(*this).GetFreeBlocks(atlas);
}
-void AtlasManager::SetNewAtlasSize( const AtlasSize& size )
+void AtlasManager::SetNewAtlasSize(const AtlasSize& size)
{
- GetImplementation(*this).SetNewAtlasSize( size );
+ GetImplementation(*this).SetNewAtlasSize(size);
}
AtlasManager::SizeType AtlasManager::GetAtlasCount() const
return GetImplementation(*this).GetAtlasCount();
}
-Pixel::Format AtlasManager::GetPixelFormat( AtlasId atlas )
+Pixel::Format AtlasManager::GetPixelFormat(AtlasId atlas) const
{
- return GetImplementation(*this).GetPixelFormat( atlas );
+ return GetImplementation(*this).GetPixelFormat(atlas);
}
-void AtlasManager::GetMetrics( Metrics& metrics )
+void AtlasManager::GetMetrics(Metrics& metrics)
{
- GetImplementation(*this).GetMetrics( metrics );
+ GetImplementation(*this).GetMetrics(metrics);
}
-Material AtlasManager::GetMaterial( AtlasId atlas ) const
+TextureSet AtlasManager::GetTextures(AtlasId atlas) const
{
- return GetImplementation(*this).GetMaterial( atlas );
+ return GetImplementation(*this).GetTextures(atlas);
}
-void AtlasManager::SetMaterial( AtlasId atlas, Material& material )
+void AtlasManager::SetTextures(AtlasId atlas, TextureSet& textureSet)
{
- GetImplementation(*this).SetMaterial( atlas, material );
+ GetImplementation(*this).SetTextures(atlas, textureSet);
}
} // namespace Toolkit