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

    r12894 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*/ 
     
    2121namespace osg { 
    2222 
    23 template <typename T, class O>     
     23template <typename T, class O> 
    2424void _readRow(unsigned int num, GLenum pixelFormat, const T* data,float scale, O& operation) 
    2525{ 
     
    3636} 
    3737 
    38 template <class O>     
     38template <class O> 
    3939void readRow(unsigned int num, GLenum pixelFormat, GLenum dataType, const unsigned char* data, O& operation) 
    4040{ 
     
    5151} 
    5252 
    53 template <class O>     
     53template <class O> 
    5454void readImage(const osg::Image* image, O& operation) 
    5555{ 
    5656    if (!image) return; 
    57      
     57 
    5858    for(int r=0;r<image->r();++r) 
    5959    { 
     
    6868// struct ModifyOperator 
    6969// { 
    70 //     inline void luminance(float& l) const {}  
    71 //     inline void alpha(float& a) const {}  
    72 //     inline void luminance_alpha(float& l,float& a) const {}  
     70//     inline void luminance(float& l) const {} 
     71//     inline void alpha(float& a) const {} 
     72//     inline void luminance_alpha(float& l,float& a) const {} 
    7373//     inline void rgb(float& r,float& g,float& b) const {} 
    7474//     inline void rgba(float& r,float& g,float& b,float& a) const {} 
     
    7676 
    7777 
    78 template <typename T, class M>     
     78template <typename T, class M> 
    7979void _modifyRow(unsigned int num, GLenum pixelFormat, T* data,float scale, const M& operation) 
    8080{ 
     
    9292} 
    9393 
    94 template <class M>     
     94template <class M> 
    9595void modifyRow(unsigned int num, GLenum pixelFormat, GLenum dataType, unsigned char* data, const M& operation) 
    9696{ 
     
    107107} 
    108108 
    109 template <class M>     
     109template <class M> 
    110110void modifyImage(osg::Image* image, const M& operation) 
    111111{ 
    112112    if (!image) return; 
    113      
     113 
    114114    for(int r=0;r<image->r();++r) 
    115115    {