Fixed shadows warnings

This commit is contained in:
Robert Osfield
2016-05-25 10:10:43 +01:00
parent 92ffa85917
commit 8f20bc9147
2 changed files with 20 additions and 20 deletions

View File

@@ -65,8 +65,8 @@ void Text3D::accept(osg::PrimitiveFunctor& pf) const
for (itLine = _textRenderInfo.begin(); itLine!=endLine; ++itLine)
{
// ** for each glyph in the line, do ...
LineRenderInfo::const_iterator it, end = itLine->end();
for (it = itLine->begin(); it!=end; ++it)
LineRenderInfo::const_iterator it, line_end = itLine->end();
for (it = itLine->begin(); it!=line_end; ++it)
{
osg::Vec3Array* vertices = it->_glyphGeometry->getVertexArray();
@@ -601,12 +601,12 @@ void Text3D::renderPerGlyph(osg::State & state) const
else if (backStateSet->getAttribute(osg::StateAttribute::MATERIAL)!=0) applyMainColor = true;
// ** for each line, do ...
TextRenderInfo::const_iterator itLine, endLine = _textRenderInfo.end();
for (itLine = _textRenderInfo.begin(); itLine!=endLine; ++itLine)
TextRenderInfo::const_iterator itLine, endText = _textRenderInfo.end();
for (itLine = _textRenderInfo.begin(); itLine!=endText; ++itLine)
{
// ** for each glyph in the line, do ...
LineRenderInfo::const_iterator it, end = itLine->end();
for (it = itLine->begin(); it!=end; ++it)
LineRenderInfo::const_iterator it, endLine = itLine->end();
for (it = itLine->begin(); it!=endLine; ++it)
{
osg::Matrix matrix(original_modelview);
@@ -677,12 +677,12 @@ void Text3D::renderPerFace(osg::State & state) const
else if (backStateSet->getAttribute(osg::StateAttribute::MATERIAL)!=0) applyMainColor = true;
TextRenderInfo::const_iterator itLine, endLine = _textRenderInfo.end();
for (itLine = _textRenderInfo.begin(); itLine!=endLine; ++itLine)
TextRenderInfo::const_iterator itLine, endText = _textRenderInfo.end();
for (itLine = _textRenderInfo.begin(); itLine!=endText; ++itLine)
{
// ** for each glyph in the line, do ...
LineRenderInfo::const_iterator it, end = itLine->end();
for (it = itLine->begin(); it!=end; ++it)
LineRenderInfo::const_iterator it, endLine = itLine->end();
for (it = itLine->begin(); it!=endLine; ++it)
{
osg::Matrix matrix(original_modelview);
matrix.preMultTranslate(osg::Vec3d(it->_position.x(), it->_position.y(), it->_position.z()));
@@ -703,11 +703,11 @@ void Text3D::renderPerFace(osg::State & state) const
if (wallStateSet!=frontStateSet) state.apply(wallStateSet);
// ** render all wall face of the text
for (itLine = _textRenderInfo.begin(); itLine!=endLine; ++itLine)
for (itLine = _textRenderInfo.begin(); itLine!=endText; ++itLine)
{
// ** for each glyph in the line, do ...
LineRenderInfo::const_iterator it, end = itLine->end();
for (it = itLine->begin(); it!=end; ++it)
LineRenderInfo::const_iterator it, endLine = itLine->end();
for (it = itLine->begin(); it!=endLine; ++it)
{
osg::Matrix matrix(original_modelview);
matrix.preMultTranslate(osg::Vec3d(it->_position.x(), it->_position.y(), it->_position.z()));
@@ -736,11 +736,11 @@ void Text3D::renderPerFace(osg::State & state) const
if (applyMainColor) state.Color(_color.r(),_color.g(),_color.b(),_color.a());
}
for (itLine = _textRenderInfo.begin(); itLine!=endLine; ++itLine)
for (itLine = _textRenderInfo.begin(); itLine!=endText; ++itLine)
{
// ** for each glyph in the line, do ...
LineRenderInfo::const_iterator it, end = itLine->end();
for (it = itLine->begin(); it!=end; ++it)
LineRenderInfo::const_iterator it, endLine = itLine->end();
for (it = itLine->begin(); it!=endLine; ++it)
{
osg::Matrix matrix(original_modelview);
matrix.preMultTranslate(osg::Vec3d(it->_position.x(), it->_position.y(), it->_position.z()));