cacheWidth should be protected.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2017-03-15 16:05:55 -03:00
parent 1c0fddb57c
commit dea1267bcb

View File

@@ -99,9 +99,6 @@ class EE_API Text {
/** @return The number of lines that the cached text contains */
const int& getNumLines();
/** Force to cache the width of the current text */
void cacheWidth();
void setStyleConfig( const FontStyleConfig& styleConfig );
protected:
void ensureGeometryUpdate();
@@ -133,6 +130,9 @@ class EE_API Text {
std::vector<VertexCoords> mOutlineVertices;
std::vector<ColorA> mOutlineColors;
std::vector<Float> mLinesWidth;
/** Force to cache the width of the current text */
void cacheWidth();
};
}}