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-glyph-manager-impl.h;h=0d328349a2978fcdb6b898bbe9b3fa6cb33fff2c;hp=5ba674018c95346710b1e9c78c4f767a5207c66e;hb=935ef82404ba71238cfa58b8938ac325604dd7d6;hpb=f08e4b14661ae1b25d01f417f58310c44407ebf6 diff --git a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h index 5ba6740..0d32834 100644 --- a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h +++ b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h @@ -51,6 +51,7 @@ public: struct GlyphRecordEntry { Text::GlyphIndex mIndex; + uint32_t mOutlineWidth; uint32_t mImageId; int32_t mCount; }; @@ -70,7 +71,8 @@ public: * @copydoc Toolkit::AtlasGlyphManager::Add */ void Add( const Text::GlyphInfo& glyph, - const BufferImage& bitmap, + const uint32_t outlineWidth, + const PixelData& bitmap, Dali::Toolkit::AtlasManager::AtlasSlot& slot ); /** @@ -81,17 +83,12 @@ public: Toolkit::AtlasManager::Mesh2D& mesh ); /** - * @copydoc Toolkit::AtlasGlyphManager::StitchMesh + * @copydoc Toolkit::AtlasGlyphManager::IsCached */ - void StitchMesh( Toolkit::AtlasManager::Mesh2D& first, - const Toolkit::AtlasManager::Mesh2D& second ); - - /** - * @copydoc Toolkit::AtlasGlyphManager::Cached - */ - bool Cached( Text::FontId fontId, - Text::GlyphIndex index, - Dali::Toolkit::AtlasManager::AtlasSlot& slot ); + bool IsCached( Text::FontId fontId, + Text::GlyphIndex index, + uint32_t outlineWidth, + Dali::Toolkit::AtlasManager::AtlasSlot& slot ); /** * @copydoc Toolkit::AtlasGlyphManager::GetAtlasSize @@ -111,39 +108,18 @@ public: /** * @copydoc toolkit::AtlasGlyphManager::AdjustReferenceCount */ - void AdjustReferenceCount( Text::FontId fontId, Text::GlyphIndex index, int32_t delta ); + void AdjustReferenceCount( Text::FontId fontId, Text::GlyphIndex index, uint32_t outlineWidth, int32_t delta ); /** - * @copydoc Toolkit::AtlasGlyphManager::GetMaterial + * @copydoc Toolkit::AtlasGlyphManager::GetTextures */ - Material GetMaterial( uint32_t atlasId ) const; - - /** - * @copydoc Toolkit::AtlasGlyphManager::GetMaterial - */ - Sampler GetSampler( uint32_t atlasId ) const; + TextureSet GetTextures( uint32_t atlasId ) const; /** * @copydoc Toolkit::AtlasGlyphManager::GetMetrics */ const Toolkit::AtlasGlyphManager::Metrics& GetMetrics(); - /** - * @copydoc Toolkit::AtlasGlyphManager::GetEffectBufferShader - */ - Shader GetEffectBufferShader() const - { - return mEffectBufferShader; - } - - /** - * @copydoc Toolkit::AtlasGlyphManager::GetGlyphShadowShader - */ - Shader GetGlyphShadowShader() const - { - return mShadowShader; - } - protected: /** @@ -156,8 +132,6 @@ private: Dali::Toolkit::AtlasManager mAtlasManager; ///> Atlas Manager created by GlyphManager std::vector< FontGlyphRecord > mFontGlyphRecords; Toolkit::AtlasGlyphManager::Metrics mMetrics; ///> Metrics to pass back on GlyphManager status - Shader mEffectBufferShader; ///> Shader used to render drop shadow buffer textures - Shader mShadowShader; ///> Shader used to render drop shadow into buffer }; } // namespace Internal