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/osg/Depth

    r11808 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*/ 
     
    2020 
    2121/** Encapsulate OpenGL glDepthFunc/Mask/Range functions. 
    22 */      
     22*/ 
    2323class OSG_EXPORT Depth : public StateAttribute 
    2424{ 
    2525    public : 
    26      
    27      
     26 
     27 
    2828        enum Function 
    2929        { 
     
    4040 
    4141        Depth(Function func=LESS,double zNear=0.0, double zFar=1.0,bool writeMask=true); 
    42          
     42 
    4343        /** Copy constructor using CopyOp to manage deep vs shallow copy.*/ 
    4444        Depth(const Depth& dp,const CopyOp& copyop=CopyOp::SHALLOW_COPY): 
     
    4848            _zFar(dp._zFar), 
    4949            _depthWriteMask(dp._depthWriteMask) {} 
    50          
    51          
     50 
     51 
    5252        META_StateAttribute(osg, Depth, DEPTH); 
    53          
     53 
    5454        /** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.*/ 
    5555        virtual int compare(const StateAttribute& sa) const 
     
    7474        } 
    7575 
    76         inline void setFunction(Function func) { _func = func; }         
     76        inline void setFunction(Function func) { _func = func; } 
    7777        inline Function getFunction() const { return _func; } 
    78                 
     78 
    7979 
    8080        inline void setRange(double zNear, double zFar) 
     
    8686        inline void setZNear(double zNear) { _zNear=zNear; } 
    8787        inline double getZNear() const { return _zNear; } 
    88      
     88 
    8989        inline void setZFar(double zFar) { _zFar=zFar; } 
    9090        inline double getZFar() const { return _zFar; } 
    9191 
    92         inline void setWriteMask(bool mask) { _depthWriteMask = mask; }         
     92        inline void setWriteMask(bool mask) { _depthWriteMask = mask; } 
    9393        inline bool getWriteMask() const { return _depthWriteMask; } 
    9494 
     
    9797 
    9898    protected: 
    99      
     99 
    100100        virtual ~Depth(); 
    101101 
    102102        Function            _func; 
    103          
     103 
    104104        double              _zNear; 
    105105        double              _zFar;