projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't replace pasted text with pre-edit text
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
atlas-manager
/
atlas-manager-impl.h
diff --git
a/dali-toolkit/internal/atlas-manager/atlas-manager-impl.h
b/dali-toolkit/internal/atlas-manager/atlas-manager-impl.h
index
0656da7
..
7c8470d
100644
(file)
--- a/
dali-toolkit/internal/atlas-manager/atlas-manager-impl.h
+++ b/
dali-toolkit/internal/atlas-manager/atlas-manager-impl.h
@@
-60,10
+60,7
@@
public:
struct AtlasDescriptor
{
Dali::Atlas mAtlas; // atlas image
struct AtlasDescriptor
{
Dali::Atlas mAtlas; // atlas image
- SizeType mWidth; // width of atlas
- SizeType mHeight; // height of atlas
- SizeType mBlockWidth; // width of a block in atlas
- SizeType mBlockHeight; // height of a block in atlas
+ Toolkit::AtlasManager::AtlasSize mSize; // size of atlas
Pixel::Format mPixelFormat; // pixel format used by atlas
BufferImage mHorizontalStrip; // Image used to pad upload
BufferImage mVerticalStrip; // Image used to pad upload
Pixel::Format mPixelFormat; // pixel format used by atlas
BufferImage mHorizontalStrip; // Image used to pad upload
BufferImage mVerticalStrip; // Image used to pad upload
@@
-95,11
+92,7
@@
public:
/**
* @copydoc: Toolkit::AtlasManager::CreateAtlas
*/
/**
* @copydoc: Toolkit::AtlasManager::CreateAtlas
*/
- AtlasId CreateAtlas( SizeType width,
- SizeType height,
- SizeType blockWidth,
- SizeType blockHeight,
- Pixel::Format pixelformat );
+ AtlasId CreateAtlas( const Toolkit::AtlasManager::AtlasSize& size, Pixel::Format pixelformat );
/**
* @copydoc Toolkit::AtlasManager::SetAddPolicy
/**
* @copydoc Toolkit::AtlasManager::SetAddPolicy
@@
-118,7
+111,8
@@
public:
*/
void GenerateMeshData( ImageId id,
const Vector2& position,
*/
void GenerateMeshData( ImageId id,
const Vector2& position,
- MeshData& mesh );
+ MeshData& mesh,
+ bool addReference );
/**
* @copydoc Toolkit::AtlasManager::StitchMesh
/**
* @copydoc Toolkit::AtlasManager::StitchMesh
@@
-152,13
+146,12
@@
public:
/**
* @copydoc Toolkit::AtlasManager::SetNewAtlasSize
*/
/**
* @copydoc Toolkit::AtlasManager::SetNewAtlasSize
*/
- void SetNewAtlasSize( const Vector2& size,
- const Vector2& blockSize );
+ void SetNewAtlasSize( const Toolkit::AtlasManager::AtlasSize& size );
/**
* @copydoc Toolkit::AtlasManager::GetAtlasSize
*/
/**
* @copydoc Toolkit::AtlasManager::GetAtlasSize
*/
-
Vector2
GetAtlasSize( AtlasId atlas );
+
const Toolkit::AtlasManager::AtlasSize&
GetAtlasSize( AtlasId atlas );
/**
* @copydoc Toolkit::AtlasManager::GetBlockSize
/**
* @copydoc Toolkit::AtlasManager::GetBlockSize
@@
-215,8
+208,7
@@
private:
void PrintMeshData( const MeshData& meshData );
void PrintMeshData( const MeshData& meshData );
- Vector2 mNewAtlasSize;
- Vector2 mNewBlockSize;
+ Toolkit::AtlasManager::AtlasSize mNewAtlasSize;
Toolkit::AtlasManager::AddFailPolicy mAddFailPolicy;
uint32_t mFilledPixel;
};
Toolkit::AtlasManager::AddFailPolicy mAddFailPolicy;
uint32_t mFilledPixel;
};