Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/cfg/ReaderWriterCFG.cpp

    r12864 r13041  
    11/* -*-c++-*- OpenSceneGraph - Copyright (C) 2007 Cedric Pinson 
    22 * 
    3  * This application is open source and may be redistributed and/or modified    
     3 * This application is open source and may be redistributed and/or modified 
    44 * freely and without restriction, both in commercial and non commercial 
    55 * applications, as long as this copyright notice is maintained. 
    6  *  
     6 * 
    77 * This application is distributed in the hope that it will be useful, 
    88 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     
    3939{ 
    4040    VisualChooser& vc = *rs.getVisualChooser(); 
    41      
     41 
    4242    osg::GraphicsContext::Traits* traits = new osg::GraphicsContext::Traits; 
    43      
    44     for (std::vector<VisualChooser::VisualAttribute>::iterator it = vc._visual_attributes.begin();  
    45         it != vc._visual_attributes.end();  
     43 
     44    for (std::vector<VisualChooser::VisualAttribute>::iterator it = vc._visual_attributes.begin(); 
     45        it != vc._visual_attributes.end(); 
    4646        it++) 
    4747    { 
     
    5252            case(VisualChooser::Level):            traits->level = it->_parameter; break; 
    5353            case(VisualChooser::RGBA):             break; // automatically set in osgViewer 
    54             case(VisualChooser::DoubleBuffer):     traits->doubleBuffer = true; break;  
     54            case(VisualChooser::DoubleBuffer):     traits->doubleBuffer = true; break; 
    5555            case(VisualChooser::Stereo):           traits->quadBufferStereo = true; break; 
    5656            case(VisualChooser::AuxBuffers):       break; // no present mapping 
     
    7474    OSG_INFO<<"ReaderWriterCFG buildTrait traits->sampleBuffers="<<traits->sampleBuffers<<std::endl; 
    7575 
    76      
     76 
    7777    traits->hostName = rs.getHostName(); 
    7878    traits->displayNum = rs.getDisplayNum(); 
     
    121121            osg::GraphicsContext::Traits* newtraits = buildTrait(*rs); 
    122122 
    123 #if 0             
     123#if 0 
    124124            osg::GraphicsContext::ScreenIdentifier si; 
    125125            si.readDISPLAY(); 
     
    128128            if (si.screenNum>=0) newtraits->screenNum = si.screenNum; 
    129129#endif 
    130      
     130 
    131131            gc = osg::GraphicsContext::createGraphicsContext(newtraits); 
    132              
     132 
    133133            surfaces[rs] = gc.get(); 
    134134            traits = gc.valid() ? gc->getTraits() : 0; 
     
    178178            return 0; 
    179179        } 
    180          
     180 
    181181    } 
    182182 
     
    188188// OSG interface to read/write from/to a file. 
    189189// 
    190 class ReaderWriterProducerCFG : public osgDB::ReaderWriter  
     190class ReaderWriterProducerCFG : public osgDB::ReaderWriter 
    191191{ 
    192192public: