Updates osghud demo.
Compile fixes for VisualStudio6.0 because its a hideous pile of junk and can't compile its way out of a paper bag.
This commit is contained in:
@@ -225,7 +225,8 @@ void Text::computeGlyphRepresentation()
|
||||
|
||||
_textureGlyphQuadMap.clear();
|
||||
|
||||
osg::Vec2 cursor(0.0f,0.0f);
|
||||
osg::Vec2 startOfLine(0.0f,0.0f);
|
||||
osg::Vec2 cursor(startOfLine);
|
||||
osg::Vec2 local(0.0f,0.0f);
|
||||
|
||||
unsigned int previous_charcode = 0;
|
||||
@@ -243,6 +244,16 @@ void Text::computeGlyphRepresentation()
|
||||
{
|
||||
unsigned int charcode = *itr;
|
||||
|
||||
if (charcode=='\n')
|
||||
{
|
||||
if (horizontal) startOfLine.y() -= _fontHeight;
|
||||
else startOfLine.x() += _fontWidth;
|
||||
cursor = startOfLine;
|
||||
previous_charcode = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Font::Glyph* glyph = activefont->getGlyph(charcode);
|
||||
if (glyph)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user