SizeType mBlockWidth; // width of a block in atlas
SizeType mBlockHeight; // height of a block in atlas
Pixel::Format mPixelFormat; // pixel format used by atlas
+ BufferImage mHorizontalStrip; // Image used to pad upload
+ BufferImage mVerticalStrip; // Image used to pad upload
+ PixelBuffer* mStripBuffer; // Blank image buffer used to pad upload
Material mMaterial; // material used for atlas texture
SizeType mNextFreeBlock; // next free block will be placed here ( actually +1 )
Dali::Vector< SizeType > mFreeBlocksList; // unless there are any previously freed blocks
AtlasId GetAtlas( ImageId id ) const;
/**
- * @copydoc Toolkit::AtlasManager::SetAtlasSize
+ * @copydoc Toolkit::AtlasManager::SetNewAtlasSize
*/
- void SetAtlasSize( const Vector2& size,
- const Vector2& blockSize );
+ void SetNewAtlasSize( const Vector2& size,
+ const Vector2& blockSize );
+
+ /**
+ * @copydoc Toolkit::AtlasManager::GetAtlasSize
+ */
+ Vector2 GetAtlasSize( AtlasId atlas );
/**
* @copydoc Toolkit::AtlasManager::GetBlockSize
*/
Pixel::Format GetPixelFormat( AtlasId atlas );
+ /**
+ * @copydoc Toolkit::AtlasManager::GetMetrics
+ */
+ void GetMetrics( Toolkit::AtlasManager::Metrics& metrics );
+
private:
std::vector< AtlasDescriptor > mAtlasList; // List of atlases created