X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fatlas-manager%2Fatlas-manager.h;h=79eb9b7a02a45dbffd3b5da57f497591e4f4210f;hb=a705c754f9d19640969ed75213884756e764a465;hp=6f654ff76ca87cd6e8626f1ae62ebea493a74299;hpb=5f6befa398f1c68fcc8edff409a086f54af4d5f9;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/atlas-manager/atlas-manager.h b/dali-toolkit/internal/atlas-manager/atlas-manager.h index 6f654ff..79eb9b7 100644 --- a/dali-toolkit/internal/atlas-manager/atlas-manager.h +++ b/dali-toolkit/internal/atlas-manager/atlas-manager.h @@ -20,9 +20,9 @@ // EXTERNAL INCLUDES #include #include -#include #include -#include +#include +#include namespace Dali { @@ -196,7 +196,7 @@ public: struct Mesh2D { Vector< Vertex2D > mVertices; - Vector< unsigned short> mIndices; + Vector< unsigned int> mIndices; }; /** @@ -286,10 +286,12 @@ public: * @param[in] id Image Id returned in the AtlasSlot from the add operation * @param[in] position position of the resulting mesh in model space * @param[out] mesh Mesh Data Object to populate with mesh data + * @param[in] addReference Whether to increase the internal reference count for image or not */ void GenerateMeshData( ImageId id, const Vector2& position, - Mesh2D& mesh ); + Mesh2D& mesh, + bool addReference = true ); /** * @brief Append second mesh to the first mesh @@ -391,6 +393,14 @@ public: */ Material GetMaterial( AtlasId atlas ) const; + /** + * @brief Get Sampler used by atlas + * + * @param atlas[in] atlas AtlasId + * + * @return Sampler used by atlas + */ + Sampler GetSampler( AtlasId atlas ) const; private: explicit DALI_INTERNAL AtlasManager(Internal::AtlasManager *impl); @@ -401,4 +411,4 @@ private: } // namespace Dali -#endif // __DALI_TOOLKIT_ATLAS_MANAGER_H__ \ No newline at end of file +#endif // __DALI_TOOLKIT_ATLAS_MANAGER_H__