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/TextureCubeMap

    r11834 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*/ 
     
    2525 
    2626    public : 
    27          
     27 
    2828        TextureCubeMap(); 
    2929 
     
    3232 
    3333        META_StateAttribute(osg, TextureCubeMap,TEXTURE); 
    34          
     34 
    3535        /** Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */ 
    3636        virtual int compare(const StateAttribute& rhs) const; 
     
    8787                virtual void subload(const TextureCubeMap& texture,State& state) const = 0; 
    8888        }; 
    89          
     89 
    9090        void setSubloadCallback(SubloadCallback* cb) { _subloadCallback = cb;; } 
    91          
     91 
    9292        SubloadCallback* getSubloadCallback() { return _subloadCallback.get(); } 
    9393 
     
    101101 
    102102        /** Get the number of mip map levels the the texture has been created with. */ 
    103         unsigned int getNumMipmapLevels() const { return _numMipmapLevels; }         
     103        unsigned int getNumMipmapLevels() const { return _numMipmapLevels; } 
    104104 
    105105        /** Copies a two-dimensional texture subimage, as per 
     
    117117        */ 
    118118        virtual void apply(State& state) const; 
    119          
     119 
    120120 
    121121        /** Extensions class which encapsulates the querying of extensions and 
    122           * associated function pointers, and provides convenience wrappers to  
     122          * associated function pointers, and provides convenience wrappers to 
    123123          * check for the extensions or use the associated functions. 
    124124        */ 
     
    129129 
    130130                Extensions(const Extensions& rhs); 
    131                  
     131 
    132132                void lowestCommonDenominator(const Extensions& rhs); 
    133                  
     133 
    134134                void setupGLExtensions(unsigned int contextID); 
    135135 
     
    140140 
    141141                ~Extensions() {} 
    142                  
     142 
    143143                bool    _isCubeMapSupported; 
    144144 
    145145        }; 
    146          
     146 
    147147        /** Function to call to get the extension of a specified context. 
    148148          * If the Extensions object for that context has not yet been created 
    149149          * and the 'createIfNotInitalized' flag been set to false then returns NULL. 
    150           * If 'createIfNotInitalized' is true then the Extensions object is  
     150          * If 'createIfNotInitalized' is true then the Extensions object is 
    151151          * automatically created. However, in this case the extension object will 
    152152          * only be created with the graphics context associated with ContextID. 
     
    164164 
    165165        virtual ~TextureCubeMap(); 
    166          
     166 
    167167        bool imagesValid() const; 
    168          
     168 
    169169        virtual void computeInternalFormat() const; 
    170170        void allocateMipmap(State& state) const; 
     
    174174        // subloaded images can have different texture and image sizes. 
    175175        mutable GLsizei _textureWidth, _textureHeight; 
    176          
    177         // number of mip map levels the the texture has been created with,         
     176 
     177        // number of mip map levels the the texture has been created with, 
    178178        mutable GLsizei _numMipmapLevels; 
    179179