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/include/osgUtil/GLObjectsVisitor

    r9917 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    2424namespace osgUtil { 
    2525 
    26 /** Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag,  
     26/** Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag, 
    2727  * with option to immediately compile osg::Drawable OpenGL Display lists and 
    2828  * osg::StateAttribute's. 
     
    4545            CHECK_BLACK_LISTED_MODES            = 0x100 
    4646        }; 
    47          
     47 
    4848        typedef unsigned int Mode; 
    4949 
    5050        /** Construct a GLObjectsVisitor to traverse all children, operating on 
    51           * node according to specified mode, such as to compile or release  
    52           * display list/texture objects etc. Default mode is to compile  
     51          * node according to specified mode, such as to compile or release 
     52          * display list/texture objects etc. Default mode is to compile 
    5353          * GL objects. 
    5454          */ 
    55         GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES);       
    56   
     55        GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES); 
     56 
    5757        META_NodeVisitor("osg","GLObjectsVisitor") 
    58         
     58 
    5959        virtual void reset() 
    6060        { 
     
    6363        } 
    6464 
    65          
     65 
    6666        /** Set the operational mode of what operations to do on the scene graph.*/ 
    6767        void setMode(Mode mode) { _mode = mode; } 
     
    6969        /** Get the operational mode.*/ 
    7070        Mode getMode() const { return _mode; } 
    71          
     71 
    7272 
    7373        /** Set the State to use during traversal. */ 
     
    7676            _renderInfo.setState(state); 
    7777        } 
    78          
     78 
    7979        osg::State* getState() 
    8080        { 
     
    8686            _renderInfo = renderInfo; 
    8787        } 
    88          
     88 
    8989        osg::RenderInfo& getRenderInfo() 
    9090        { 
     
    9494        /** Simply traverse using standard NodeVisitor traverse method.*/ 
    9595        virtual void apply(osg::Node& node); 
    96          
    97         /** For each Geode visited set the display list usage according to the  
     96 
     97        /** For each Geode visited set the display list usage according to the 
    9898          * _displayListMode. 
    9999          */ 
     
    125125 
    126126        virtual void operator () (osg::GraphicsContext* context); 
    127          
     127 
    128128    protected: 
    129      
     129 
    130130        osg::ref_ptr<osg::Node> _subgraph; 
    131131        GLObjectsVisitor::Mode  _mode;