X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fatlas-manager%2Fatlas-manager.cpp;h=e46eb1da23f850f8203b336802661da27d1b7856;hp=6d21245b4d0dadcb9b98e8a2bc1aea32abfd68c1;hb=b88f2695b93192680a5779764757ada1534c57fe;hpb=43810310547ea62237f91305e8b9724fd017492a diff --git a/dali-toolkit/internal/atlas-manager/atlas-manager.cpp b/dali-toolkit/internal/atlas-manager/atlas-manager.cpp index 6d21245..e46eb1d 100644 --- a/dali-toolkit/internal/atlas-manager/atlas-manager.cpp +++ b/dali-toolkit/internal/atlas-manager/atlas-manager.cpp @@ -45,13 +45,9 @@ AtlasManager::AtlasManager(Internal::AtlasManager *impl) { } -AtlasManager::AtlasId AtlasManager::CreateAtlas( SizeType width, - SizeType height, - SizeType blockWidth, - SizeType blockHeight, - Pixel::Format pixelformat ) +AtlasManager::AtlasId AtlasManager::CreateAtlas( const AtlasManager::AtlasSize& size, Pixel::Format pixelformat ) { - return GetImplementation(*this).CreateAtlas( width, height, blockWidth, blockHeight, pixelformat ); + return GetImplementation(*this).CreateAtlas( size, pixelformat ); } void AtlasManager::SetAddPolicy( AddFailPolicy policy ) @@ -105,12 +101,7 @@ AtlasManager::AtlasId AtlasManager::GetAtlas( ImageId id ) return GetImplementation(*this).GetAtlas( id ); } -Vector2 AtlasManager::GetBlockSize( AtlasId atlas ) -{ - return GetImplementation(*this).GetBlockSize( atlas ); -} - -Vector2 AtlasManager::GetAtlasSize( AtlasId atlas ) +const AtlasManager::AtlasSize& AtlasManager::GetAtlasSize( AtlasId atlas ) { return GetImplementation(*this).GetAtlasSize( atlas ); } @@ -120,10 +111,9 @@ AtlasManager::SizeType AtlasManager::GetFreeBlocks( AtlasId atlas ) return GetImplementation(*this).GetFreeBlocks( atlas ); } -void AtlasManager::SetNewAtlasSize( const Vector2& size, - const Vector2& blockSize ) +void AtlasManager::SetNewAtlasSize( const AtlasSize& size ) { - GetImplementation(*this).SetNewAtlasSize( size, blockSize ); + GetImplementation(*this).SetNewAtlasSize( size ); } AtlasManager::SizeType AtlasManager::GetAtlasCount() const