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

    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*/ 
     
    2020namespace osg { 
    2121 
    22 /** Encapsulate OpenGL glViewport. */      
     22/** Encapsulate OpenGL glViewport. */ 
    2323class OSG_EXPORT Viewport : public StateAttribute 
    2424{ 
     
    3131#endif 
    3232        Viewport(); 
    33          
     33 
    3434        Viewport(value_type x,value_type y,value_type width,value_type height): 
    3535            _x(x), 
     
    3737            _width(width), 
    3838            _height(height) {} 
    39              
     39 
    4040 
    4141        /** Copy constructor using CopyOp to manage deep vs shallow copy. */ 
     
    4848 
    4949        META_StateAttribute(osg, Viewport,VIEWPORT); 
    50          
     50 
    5151        /** Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */ 
    5252        virtual int compare(const StateAttribute& sa) const 
     
    6161            COMPARE_StateAttribute_Parameter(_width) 
    6262            COMPARE_StateAttribute_Parameter(_height) 
    63              
     63 
    6464            return 0; // passed all the above comparison macros, must be equal. 
    6565        } 
     
    7373        } 
    7474 
    75 #if 0         
     75#if 0 
    7676        void getViewport(int& x,int& y,int& width,int& height) const 
    7777        { 
     
    108108        */ 
    109109        inline double aspectRatio() const { if (_height!=0) return (double)_width/(double)_height; else return 1.0; } 
    110          
     110 
    111111        /** Compute the Window Matrix which takes projected coords into Window coordinates. 
    112112          * To convert local coordinates into window coordinates use v_window = v_local * MVPW matrix, 
     
    123123 
    124124    protected: 
    125      
     125 
    126126        virtual ~Viewport(); 
    127127