X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fatlas%2Fatlas-manager.h;h=5542dd05e49097cceadd0e729c947a05e51380f1;hp=34493629cf2e66a2301aeda39e07c59e726a9988;hb=6f990775daf7adf6170db59f0b99e00ae25fceed;hpb=abf2533b2621e07a62a7ac65944959a18bd89673 diff --git a/dali-toolkit/internal/text/rendering/atlas/atlas-manager.h b/dali-toolkit/internal/text/rendering/atlas/atlas-manager.h index 3449362..5542dd0 100644 --- a/dali-toolkit/internal/text/rendering/atlas/atlas-manager.h +++ b/dali-toolkit/internal/text/rendering/atlas/atlas-manager.h @@ -22,7 +22,7 @@ #include #include #include -#include +#include namespace Dali { @@ -90,7 +90,7 @@ public: struct Mesh2D { Vector< Vertex2D > mVertices; ///< container of vertices - Vector< SizeType > mIndices; ///< container of indices + Vector< unsigned short > mIndices; ///< container of indices }; /** @@ -157,13 +157,13 @@ public: * If an add is made before an atlas is created under this policy, * then a default size atlas will be created * - * @param[in] image reference to a bitmapimage + * @param[in] image PixelData object containing the image data * @param[out] slot result of add operation * @param[in] atlas optional preferred atlas * * @return true if a new atlas was created */ - bool Add( const BufferImage& image, + bool Add( const PixelData& image, AtlasSlot& slot, AtlasId atlas = 0 ); @@ -196,7 +196,7 @@ public: * * @return Atlas Handle */ - Dali::Atlas GetAtlasContainer( AtlasId atlas ) const; + Dali::Texture GetAtlasContainer( AtlasId atlas ) const; /** * @brief Get the Id of the atlas containing an image @@ -247,7 +247,7 @@ public: * * @return Pixel format used by this atlas */ - Pixel::Format GetPixelFormat( AtlasId atlas ); + Pixel::Format GetPixelFormat( AtlasId atlas ) const; /** * @brief Fill in a metrics structure showing current status of this Atlas Manager @@ -257,21 +257,21 @@ public: void GetMetrics( Metrics& metrics ); /** - * @brief Get Material used by atlas + * @brief Get TextureSet used by atlas * * @param[in] atlas AtlasId * - * @return Material used by atlas + * @return TextureSet used by atlas */ - Material GetMaterial( AtlasId atlas ) const; + TextureSet GetTextures( AtlasId atlas ) const; /** - * @brief Set the material used by an atlas + * @brief Set the texture set used by an atlas * * @param[in] atlas AtlasId - * @param[in] material The Material to assign + * @param[in] textureSet The texture set to assign */ - void SetMaterial( AtlasId atlas, Material& material ); + void SetTextures( AtlasId atlas, TextureSet& textureSet ); private: