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

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/geo/ClipRegion.cpp

    r4852 r13041  
    3232 
    3333void GeoClipRegion::addClipNode(osg::Node *gd) { 
    34      
     34 
    3535    osg::StateSet *state=gd->getOrCreateStateSet(); 
    3636    // add clip node(s) to set stencil bit marking the clip area. 
    37     // stencil op so that the stencil buffer get set at the clip pixels  
     37    // stencil op so that the stencil buffer get set at the clip pixels 
    3838    osg::Stencil* stencil = new osg::Stencil; 
    3939    stencil->setFunction(osg::Stencil::ALWAYS,1,~0u); 
    4040    stencil->setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP, osg::Stencil::REPLACE); 
    4141    state->setAttributeAndModes(stencil,osg::StateAttribute::ON); 
    42      
     42 
    4343    // switch off the writing to the color bit planes. (Dont show the clip area) 
    4444    osg::ColorMask* colorMask = new osg::ColorMask; 
    4545    colorMask->setMask(false,false,false,false); 
    46      
     46 
    4747    state->setRenderBinDetails(stencilbin,"RenderBin"); 
    4848    state->setMode(GL_CULL_FACE,osg::StateAttribute::OFF); 
     
    5757 
    5858bool GeoClipRegion::addChild( osg::Node *child ) 
    59 {  
    60     // bin the last - draw 'real' scenery last, using Z buffer to clip against any clip region...  
     59{ 
     60    // bin the last - draw 'real' scenery last, using Z buffer to clip against any clip region... 
    6161 
    62         osg::StateSet* statesetBin2 = child->getOrCreateStateSet();         
     62        osg::StateSet* statesetBin2 = child->getOrCreateStateSet(); 
    6363        statesetBin2->setRenderBinDetails(stencilbin+3,"RenderBin"); 
    6464    /*   osg::Stencil* stencil = new osg::Stencil; 
     
    119119    osg::StateSet *state=ndclip->getOrCreateStateSet(); 
    120120    // last bin  - draw clip area and blend it with the clipped, visible geometry. 
    121      
     121 
    122122    // set up depth so all writing to depth goes to maximum depth. 
    123123    osg::Depth* depth = new osg::Depth;