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/include/osgFX/Cartoon

    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*/ 
     
    2626 
    2727     /** 
    28      This effect implements a technique called 'Cel-Shading' to produce a  
    29      cartoon-style (non photorealistic) rendering. Two passes are required:  
    30      the first one draws solid surfaces, the second one draws the outlines.  
    31      A vertex program is used to setup texture coordinates for a sharp lighting  
     28     This effect implements a technique called 'Cel-Shading' to produce a 
     29     cartoon-style (non photorealistic) rendering. Two passes are required: 
     30     the first one draws solid surfaces, the second one draws the outlines. 
     31     A vertex program is used to setup texture coordinates for a sharp lighting 
    3232     texture on unit 0 which is generated on-the-fly. 
    3333     This effect requires the ARB_vertex_program extension. 
     
    4040        // effect class informations 
    4141        META_Effect( 
    42             osgFX,  
    43             Cartoon,  
    44              
    45             "Cartoon",  
    46              
     42            osgFX, 
     43            Cartoon, 
     44 
     45            "Cartoon", 
     46 
    4747            "This effect implements a technique called 'Cel-Shading' to produce a " 
    4848            "cartoon-style (non photorealistic) rendering. Two passes are required: " 
     
    5252            "This effect requires the ARB_vertex_program extension " 
    5353            "or OpenGL Shading Language.", 
    54              
     54 
    5555            "Marco Jez; OGLSL port by Mike Weiblen"); 
    5656 
    5757        /** get the outline color */ 
    5858        inline const osg::Vec4& getOutlineColor() const; 
    59          
     59 
    6060        /** set the outline color */ 
    6161        inline void setOutlineColor(const osg::Vec4& color); 
    62          
     62 
    6363        /** get the outline line width */ 
    6464        inline float getOutlineLineWidth() const; 
    65          
     65 
    6666        /** set the outline line width */ 
    6767        inline void setOutlineLineWidth(float w); 
    68          
     68 
    6969        /** get the OpenGL light number */ 
    7070        inline int getLightNumber() const; 
    71          
     71 
    7272        /** set the OpenGL light number that will be used in lighting computations */ 
    7373        inline void setLightNumber(int n); 
     
    9696        _wf_mat->setEmission(osg::Material::FRONT_AND_BACK, color); 
    9797    } 
    98      
     98 
    9999    inline float Cartoon::getOutlineLineWidth() const 
    100100    { 
    101101        return _wf_lw->getWidth(); 
    102102    } 
    103      
     103 
    104104    inline void Cartoon::setOutlineLineWidth(float w) 
    105105    { 
    106106        _wf_lw->setWidth(w); 
    107107    } 
    108      
     108 
    109109    inline int Cartoon::getLightNumber() const 
    110110    { 
    111111        return _lightnum; 
    112112    } 
    113      
     113 
    114114    inline void Cartoon::setLightNumber(int n) 
    115115    {