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

    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*/ 
     
    4646        enum Mode 
    4747        { 
    48             FASTEST = GL_FASTEST,  
     48            FASTEST = GL_FASTEST, 
    4949            NICEST = GL_NICEST, 
    50             DONT_CARE = GL_DONT_CARE  
     50            DONT_CARE = GL_DONT_CARE 
    5151        }; 
    5252 
    5353        Multisample(); 
    54          
     54 
    5555        /** Copy constructor using CopyOp to manage deep vs shallow copy.*/ 
    5656        Multisample(const Multisample& trans,const CopyOp& copyop=CopyOp::SHALLOW_COPY): 
     
    6161 
    6262        META_StateAttribute(osg, Multisample,MULTISAMPLE); 
    63          
     63 
    6464        /** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.*/ 
    6565        virtual int compare(const StateAttribute& sa) const 
     
    7777        } 
    7878 
    79         void setSampleCoverage(float coverage, bool invert)  
     79        void setSampleCoverage(float coverage, bool invert) 
    8080        { 
    81             _coverage = coverage;  
     81            _coverage = coverage; 
    8282            _invert = invert; 
    8383        } 
    8484        inline void setCoverage(float coverage) { _coverage=coverage; } 
    8585        inline float getCoverage() const { return _coverage; } 
    86      
     86 
    8787        inline void setInvert(bool invert) { _invert=invert; } 
    8888        inline bool getInvert() const { return _invert; } 
     
    9595 
    9696        /** Extensions class which encapsulates the querying of extensions and 
    97           * associated function pointers, and provide convenience wrappers to  
    98           * check for the extensions or use the associated functions.*/         
     97          * associated function pointers, and provide convenience wrappers to 
     98          * check for the extensions or use the associated functions.*/ 
    9999        class OSG_EXPORT Extensions : public osg::Referenced 
    100100        { 
     
    103103 
    104104                Extensions(const Extensions& rhs); 
    105                  
     105 
    106106                void lowestCommonDenominator(const Extensions& rhs); 
    107                  
     107 
    108108                void setupGLExtensions(unsigned int contextID); 
    109109 
     
    112112                bool isMultisampleSupported() const { return _isMultisampleSupported; } 
    113113                bool isMultisampleFilterHintSupported() const { return _isMultisampleFilterHintSupported; } 
    114                  
     114 
    115115                void glSampleCoverage(GLclampf value, GLboolean invert) const; 
    116116 
     
    118118 
    119119                ~Extensions() {} 
    120                  
     120 
    121121                bool    _isMultisampleSupported; 
    122122                bool    _isMultisampleFilterHintSupported; 
    123                  
     123 
    124124                typedef void (GL_APIENTRY * GLSampleCoverageProc) (GLclampf value, GLboolean invert); 
    125125                GLSampleCoverageProc _glSampleCoverage; 
    126126 
    127127        }; 
    128          
     128 
    129129        /** Function to call to get the extension of a specified context. 
    130           * If the Extension object for that context has not yet been created  
     130          * If the Extension object for that context has not yet been created 
    131131          * and the 'createIfNotInitalized' flag been set to false then returns NULL. 
    132           * If 'createIfNotInitalized' is true then the Extensions object is  
     132          * If 'createIfNotInitalized' is true then the Extensions object is 
    133133          * automatically created.  However, in this case the extension object will 
    134134          * only be created with the graphics context associated with ContextID..*/