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/osgFX/Effect

    r5328 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*/ 
     
    5151     often using different OpenGL extensions. The active technique can be 
    5252     selected either manually, with selectTechnique(), or automatically, in which 
    53      case the first technique that is supported by all active rendering contexts  
     53     case the first technique that is supported by all active rendering contexts 
    5454     is chosen. 
    55      If you are an Effect user, then simply use it as a node group. Create an  
    56      instance of your desired effect, add it to your scene graph and call its  
     55     If you are an Effect user, then simply use it as a node group. Create an 
     56     instance of your desired effect, add it to your scene graph and call its 
    5757     addChild() method to add a child node as you would do with a Group. 
    5858     If you are an Effect developer, you will have to implement the method 
     
    7575        /** get the name of this Effect */ 
    7676        virtual const char *effectName() const        = 0; 
    77          
     77 
    7878        /** get a brief description of this Effect*/ 
    7979        virtual const char *effectDescription() const = 0; 
     
    8787        /** set whether the effect is enabled or not */ 
    8888        inline void setEnabled(bool v); 
    89          
     89 
    9090        /** 
    9191         optional: set effect parameters to produce a visually significant 
     
    9797        /** get the number of techniques defined for this Effect */ 
    9898        inline int getNumTechniques() const; 
    99          
     99 
    100100        /** get the i-th Technique */ 
    101101        inline Technique* getTechnique(int i); 
     
    115115 
    116116        /** custom traversal */ 
    117         virtual void traverse(osg::NodeVisitor& nv);         
     117        virtual void traverse(osg::NodeVisitor& nv); 
    118118 
    119119        /** default traversal */ 
     
    123123        virtual ~Effect(); 
    124124        Effect &operator=(const Effect &) { return *this; } 
    125         
     125 
    126126        /** force rebuilding of techniques on next traversal */ 
    127127        inline void dirtyTechniques(); 
     
    137137         */ 
    138138        virtual bool define_techniques() = 0; 
    139          
     139 
    140140    private: 
    141141        friend class Validator; 
     
    150150        // use int instead of bool to avoid errors 
    151151        mutable osg::buffered_value<int> _tech_selected; 
    152          
     152 
    153153        int _global_sel_tech; 
    154154 
     
    156156 
    157157        osg::ref_ptr<osg::Geode> _dummy_for_validation; 
    158          
     158 
    159159        void build_dummy_node(); 
    160160    }; 
     
    171171        _enabled = v; 
    172172    } 
    173      
     173 
    174174    inline int Effect::getNumTechniques() const 
    175175    { 
     
    201201        _techs.push_back(tech); 
    202202    } 
    203      
     203 
    204204    inline void Effect::dirtyTechniques() 
    205205    { 
    206206        _techs_defined = false; 
    207207    } 
    208      
     208 
    209209    inline void Effect::inherited_traverse(osg::NodeVisitor& nv) 
    210210    {