Utility/SimpleTextDrawer: Update SetColor method (will no longer force full regeneration)

Former-commit-id: 3f3043ea5c5d3add1358d50eb3f92e452d931dbf
This commit is contained in:
Lynix
2016-01-08 14:00:54 +01:00
parent f9394e7af2
commit 4562243c5f
2 changed files with 19 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ namespace Nz
void OnFontAtlasLayerChanged(const Font* font, AbstractImage* oldLayer, AbstractImage* newLayer);
void OnFontInvalidated(const Font* font);
void OnFontRelease(const Font* object);
void UpdateGlyphColor() const;
void UpdateGlyphs() const;
NazaraSlot(Font, OnFontAtlasChanged, m_atlasChangedSlot);
@@ -75,6 +76,7 @@ namespace Nz
mutable UInt32 m_previousCharacter;
UInt32 m_style;
mutable Vector2ui m_drawPos;
mutable bool m_colorUpdated;
mutable bool m_glyphUpdated;
unsigned int m_characterSize;
};