Removed unused lineNumber
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace osgText {
|
namespace osgText {
|
||||||
|
|
||||||
|
|
||||||
class OSGTEXT_EXPORT Text : public osgText::TextBase
|
class OSGTEXT_EXPORT Text : public osgText::TextBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -309,7 +308,6 @@ public:
|
|||||||
ColorCoords _colorCoords;
|
ColorCoords _colorCoords;
|
||||||
|
|
||||||
TexCoords _texcoords;
|
TexCoords _texcoords;
|
||||||
LineNumbers _lineNumbers;
|
|
||||||
|
|
||||||
Coords _transformedBackdropCoords[8];
|
Coords _transformedBackdropCoords[8];
|
||||||
|
|
||||||
|
|||||||
@@ -254,8 +254,6 @@ void Text::computeGlyphRepresentation()
|
|||||||
bool horizontal = _layout!=VERTICAL;
|
bool horizontal = _layout!=VERTICAL;
|
||||||
bool kerning = true;
|
bool kerning = true;
|
||||||
|
|
||||||
unsigned int lineNumber = 0;
|
|
||||||
|
|
||||||
float hr = _characterHeight;
|
float hr = _characterHeight;
|
||||||
float wr = hr/getCharacterAspectRatio();
|
float wr = hr/getCharacterAspectRatio();
|
||||||
|
|
||||||
@@ -445,7 +443,6 @@ void Text::computeGlyphRepresentation()
|
|||||||
GlyphQuads& glyphquad = _textureGlyphQuadMap[glyph->getTexture()];
|
GlyphQuads& glyphquad = _textureGlyphQuadMap[glyph->getTexture()];
|
||||||
|
|
||||||
glyphquad._glyphs.push_back(glyph);
|
glyphquad._glyphs.push_back(glyph);
|
||||||
glyphquad._lineNumbers.push_back(lineNumber);
|
|
||||||
|
|
||||||
glyphquad.addCoord(upLeft);
|
glyphquad.addCoord(upLeft);
|
||||||
glyphquad.addCoord(lowLeft);
|
glyphquad.addCoord(lowLeft);
|
||||||
@@ -521,9 +518,6 @@ void Text::computeGlyphRepresentation()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
++lineNumber;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(TextureGlyphQuadMap::iterator titr=_textureGlyphQuadMap.begin();
|
for(TextureGlyphQuadMap::iterator titr=_textureGlyphQuadMap.begin();
|
||||||
|
|||||||
Reference in New Issue
Block a user