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

    r11830 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*/ 
     
    3030 
    3131    public : 
    32          
     32 
    3333        Texture3D(); 
    3434 
     
    3737        /** Copy constructor using CopyOp to manage deep vs shallow copy. */ 
    3838        Texture3D(const Texture3D& text,const CopyOp& copyop=CopyOp::SHALLOW_COPY); 
    39          
     39 
    4040        META_StateAttribute(osg, Texture3D,TEXTURE); 
    4141 
     
    106106                virtual void subload(const Texture3D& texture,State& state) const = 0; 
    107107        }; 
    108          
     108 
    109109        void setSubloadCallback(SubloadCallback* cb) { _subloadCallback = cb;; } 
    110          
     110 
    111111        SubloadCallback* getSubloadCallback() { return _subloadCallback.get(); } 
    112112 
     
    121121        /** Gets the number of mipmap levels created. */ 
    122122        unsigned int getNumMipmapLevels() const { return _numMipmapLevels; } 
    123          
     123 
    124124 
    125125        /** Copies a two-dimensional texture subimage, as per 
     
    136136          * compiled, create the texture mipmap levels. */ 
    137137        virtual void apply(State& state) const; 
    138          
     138 
    139139 
    140140        /** Encapsulates queries of extension availability, obtains extension 
    141141          * function pointers, and provides convenience wrappers for 
    142           * calling extension functions. */         
     142          * calling extension functions. */ 
    143143        class OSG_EXPORT Extensions : public osg::Referenced 
    144144        { 
     
    147147 
    148148                Extensions(const Extensions& rhs); 
    149                  
     149 
    150150                void lowestCommonDenominator(const Extensions& rhs); 
    151                      
     151 
    152152                void setupGLExtensions(unsigned int contextID); 
    153153 
    154154                void setTexture3DSupported(bool flag) { _isTexture3DSupported=flag; } 
    155155                bool isTexture3DSupported() const { return _isTexture3DSupported; } 
    156                  
     156 
    157157                void setTexture3DFast(bool flag) { _isTexture3DFast=flag; } 
    158158                bool isTexture3DFast() const { return _isTexture3DFast; } 
     
    185185                GLint   _maxTexture3DSize; 
    186186        }; 
    187          
     187 
    188188        /** Encapsulates queries of extension availability, obtains extension 
    189189          * function pointers, and provides convenience wrappers for 
    190           * calling extension functions. */         
     190          * calling extension functions. */ 
    191191        static Extensions* getExtensions(unsigned int contextID,bool createIfNotInitalized); 
    192192 
     
    215215        /** Subloaded images can have different texture and image sizes. */ 
    216216        mutable GLsizei _textureWidth, _textureHeight, _textureDepth; 
    217          
     217 
    218218        /** Number of mip map levels the the texture has been created with, */ 
    219219        mutable GLsizei _numMipmapLevels;