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/osgUtil/RenderStage

    r12298 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*/ 
     
    3838{ 
    3939    public: 
    40      
     40 
    4141 
    4242        RenderStage(); 
    4343        RenderStage(SortMode mode); 
    44          
     44 
    4545        RenderStage(const RenderStage& rhs,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 
    46          
     46 
    4747        virtual osg::Object* cloneType() const { return new RenderStage(); } 
    4848        virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new RenderStage(*this,copyop); } // note only implements a clone of type. 
     
    5151 
    5252        virtual void reset(); 
    53          
    54          
     53 
     54 
    5555        /** Set the draw buffer used at the start of each frame draw. */ 
    5656        void setDrawBuffer(GLenum buffer, bool applyMask = true ) { _drawBuffer = buffer; setDrawBufferApplyMask( applyMask ); } 
     
    8888        /** Get the viewport. */ 
    8989        osg::Viewport* getViewport() { return _viewport.get(); } 
    90          
     90 
    9191        /** Set the initial view matrix.*/ 
    9292        void setInitialViewMatrix(const osg::RefMatrix* matrix) { _initialViewMatrix = matrix; } 
    93          
     93 
    9494        /** Get the initial view matrix.*/ 
    9595        const osg::RefMatrix* getInitialViewMatrix() { return _initialViewMatrix.get(); } 
     
    108108 
    109109 
    110         /** Set the clear color used in glClearColor(..).  
     110        /** Set the clear color used in glClearColor(..). 
    111111          * glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true*/ 
    112112        void setClearColor(const osg::Vec4& color) { _clearColor=color; } 
    113          
     113 
    114114        /** Get the clear color.*/ 
    115115        const osg::Vec4& getClearColor() const { return _clearColor; } 
    116          
    117         /** Set the clear accum used in glClearAccum(..).  
     116 
     117        /** Set the clear accum used in glClearAccum(..). 
    118118          * glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true. */ 
    119119        void setClearAccum(const osg::Vec4& color) { _clearAccum=color; } 
    120          
     120 
    121121        /** Get the clear accum.*/ 
    122122        const osg::Vec4& getClearAccum() const { return _clearAccum; } 
    123          
     123 
    124124        /** Set the clear depth used in glClearDepth(..). Defaults to 1.0 
    125125          * glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true. */ 
    126126        void setClearDepth(double depth) { _clearDepth=depth; } 
    127          
     127 
    128128        /** Get the clear depth.*/ 
    129129        double getClearDepth() const { return _clearDepth; } 
     
    132132          * glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true*/ 
    133133        void setClearStencil(int stencil) { _clearStencil=stencil; } 
    134          
     134 
    135135        /** Get the clear color.*/ 
    136136        int getClearStencil() const { return _clearStencil; } 
    137          
     137 
    138138 
    139139        void setCamera(osg::Camera* camera) { if (_camera!=camera) { _camera = camera; _cameraRequiresSetUp = true; } } 
     
    143143        void setCameraRequiresSetUp(bool flag) { _cameraRequiresSetUp = flag; } 
    144144        bool getCameraRequiresSetUp() const { return _cameraRequiresSetUp; } 
    145          
     145 
    146146        /** Attempt the set the RenderStage from the Camera settings.*/ 
    147147        void runCameraSetUp(osg::RenderInfo& renderInfo); 
    148          
     148 
    149149        void setTexture(osg::Texture* texture, unsigned int level = 0, unsigned int face=0) { _texture = texture; _level = level; _face = face; } 
    150150        osg::Texture* getTexture() { return _texture.get(); } 
    151          
     151 
    152152        void setImage(osg::Image* image) { _image = image; } 
    153153        osg::Image* getImage() { return _image.get(); } 
    154          
     154 
    155155        void setImageReadPixelFormat(GLenum format) { _imageReadPixelFormat = format; } 
    156156        GLenum getImageReadPixelFormat() const { return _imageReadPixelFormat; } 
     
    206206            getPositionalStateContainer()->addPositionedAttribute(matrix,attr); 
    207207        } 
    208          
     208 
    209209        virtual void addPositionedTextureAttribute(unsigned int textureUnit, osg::RefMatrix* matrix,const osg::StateAttribute* attr) 
    210210        { 
     
    215215 
    216216        virtual void sort(); 
    217          
     217 
    218218        virtual void drawPreRenderStages(osg::RenderInfo& renderInfo,RenderLeaf*& previous); 
    219219 
     
    221221 
    222222        virtual void drawInner(osg::RenderInfo& renderInfo,RenderLeaf*& previous, bool& doCopyTexture); 
    223      
     223 
    224224        virtual void drawPostRenderStages(osg::RenderInfo& renderInfo,RenderLeaf*& previous); 
    225225 
     
    230230 
    231231        void addPreRenderStage(RenderStage* rs, int order = 0); 
    232          
     232 
    233233        void addPostRenderStage(RenderStage* rs, int order = 0); 
    234234 
    235235        /** Extract stats for current draw list. */ 
    236         bool getStats(Statistics& stats) const;  
    237   
     236        bool getStats(Statistics& stats) const; 
     237 
    238238        /** Compute the number of dynamic RenderLeaves.*/ 
    239239        virtual unsigned int computeNumberOfDynamicRenderLeaves() const; 
     
    276276        osg::ref_ptr<osg::Viewport>         _viewport; 
    277277        osg::ref_ptr<const osg::RefMatrix>  _initialViewMatrix; 
    278          
     278 
    279279        GLenum                              _drawBuffer; 
    280280        bool                                _drawBufferApplyMask; 
     
    290290        bool                                _cameraRequiresSetUp; 
    291291        osg::Camera*                        _camera; 
    292          
     292 
    293293        osg::ref_ptr<osg::Texture>              _texture; 
    294294        unsigned int                            _level; 
     
    298298        GLenum                                  _imageReadPixelFormat; 
    299299        GLenum                                  _imageReadPixelDataType; 
    300          
     300 
    301301        std::map< osg::Camera::BufferComponent, Attachment> _bufferAttachmentMap; 
    302          
     302 
    303303        osg::ref_ptr<osg::FrameBufferObject>    _fbo; 
    304304        osg::ref_ptr<osg::FrameBufferObject>    _resolveFbo;