Fixed warnings.
This commit is contained in:
@@ -2216,7 +2216,7 @@ std::string DXWriter::WriteGeode( osg::Geode &geode,
|
||||
group = new DXGroup( name_mgr, &name );
|
||||
|
||||
// For all GeoSets in this Geode...
|
||||
for ( int i = 0; i < geode.getNumDrawables(); i++ ) {
|
||||
for (unsigned int i = 0; i < geode.getNumDrawables(); i++ ) {
|
||||
osg::GeoSet *geoset = dynamic_cast<osg::GeoSet*>( geode.getDrawable(i) );
|
||||
|
||||
// If we have multiple GeoSets per Geode, we need to generate different
|
||||
|
||||
@@ -33,7 +33,7 @@ void DisplayListVisitor::apply(osg::Geode& node)
|
||||
node.getStateSet()->compile(*_state);
|
||||
}
|
||||
|
||||
for(int i=0;i<node.getNumDrawables();++i)
|
||||
for(unsigned int i=0;i<node.getNumDrawables();++i)
|
||||
{
|
||||
Drawable* drawable = node.getDrawable(i);
|
||||
if (drawable->getUseDisplayList())
|
||||
@@ -48,14 +48,14 @@ void DisplayListVisitor::apply(osg::Geode& node)
|
||||
|
||||
if (_mode&SWITCH_OFF_DISPLAY_LISTS)
|
||||
{
|
||||
for(int i=0;i<node.getNumDrawables();++i)
|
||||
for(unsigned int i=0;i<node.getNumDrawables();++i)
|
||||
{
|
||||
node.getDrawable(i)->setUseDisplayList(false);
|
||||
}
|
||||
}
|
||||
if (_mode&SWITCH_ON_DISPLAY_LISTS)
|
||||
{
|
||||
for(int i=0;i<node.getNumDrawables();++i)
|
||||
for(unsigned int i=0;i<node.getNumDrawables();++i)
|
||||
{
|
||||
node.getDrawable(i)->setUseDisplayList(true);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ void DisplayListVisitor::apply(osg::Geode& node)
|
||||
|
||||
if (_mode&COMPILE_DISPLAY_LISTS && _state.valid())
|
||||
{
|
||||
for(int i=0;i<node.getNumDrawables();++i)
|
||||
for(unsigned int i=0;i<node.getNumDrawables();++i)
|
||||
{
|
||||
if (node.getDrawable(i)->getUseDisplayList())
|
||||
{
|
||||
|
||||
@@ -52,7 +52,7 @@ void DisplayRequirementsVisitor::apply(Geode& geode)
|
||||
osg::StateSet* geode_stateset = geode.getStateSet();
|
||||
if (geode_stateset) applyStateSet(*geode_stateset);
|
||||
|
||||
for(int i = 0; i < geode.getNumDrawables(); i++ )
|
||||
for(unsigned int i = 0; i < geode.getNumDrawables(); i++ )
|
||||
{
|
||||
osg::StateSet* stateset = geode.getDrawable(i)->getStateSet();
|
||||
if (stateset) applyStateSet(*stateset);
|
||||
|
||||
@@ -130,7 +130,7 @@ void SmoothingVisitor::smooth(osg::Geometry& geom)
|
||||
|
||||
void SmoothingVisitor::apply(osg::Geode& geode)
|
||||
{
|
||||
for(int i = 0; i < geode.getNumDrawables(); i++ )
|
||||
for(unsigned int i = 0; i < geode.getNumDrawables(); i++ )
|
||||
{
|
||||
osg::Geometry* geom = dynamic_cast<osg::Geometry*>(geode.getDrawable(i));
|
||||
if (geom) smooth(*geom);
|
||||
|
||||
@@ -206,7 +206,7 @@ void TriStripVisitor::stripify(Geometry& geom)
|
||||
|
||||
void TriStripVisitor::apply(Geode& geode)
|
||||
{
|
||||
for(int i = 0; i < geode.getNumDrawables(); ++i )
|
||||
for(unsigned int i = 0; i < geode.getNumDrawables(); ++i )
|
||||
{
|
||||
osg::Geometry* geom = dynamic_cast<osg::Geometry*>(geode.getDrawable(i));
|
||||
if (geom) stripify(*geom);
|
||||
|
||||
Reference in New Issue
Block a user