Changeset 6941

Show
Ignore:
Timestamp:
06/12/07 16:20:16 (5 years ago)
Author:
robert
Message:

From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License

Location:
OpenSceneGraph/trunk/examples
Files:
127 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osganimate/osganimate.cpp

    r6803 r6941  
     1/* OpenSceneGraph example, osganimate. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Notify> 
    220#include <osg/MatrixTransform> 
  • OpenSceneGraph/trunk/examples/osgautotransform/osgautotransform.cpp

    r5910 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgautotransform. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
    1318 
  • OpenSceneGraph/trunk/examples/osgbillboard/osgbillboard.cpp

    r5911 r6941  
     1/* OpenSceneGraph example, osgbillboard. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9*  
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Node> 
    220#include <osg/Geometry> 
  • OpenSceneGraph/trunk/examples/osgblendequation/osgblendequation.cpp

    r6908 r6941  
     1/* OpenSceneGraph example, osgblendequation. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/Group> 
  • OpenSceneGraph/trunk/examples/osgcallback/osgcallback.cpp

    r6908 r6941  
     1/* OpenSceneGraph example, osgcallback. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgcamera/osgcamera.cpp

    r6927 r6941  
     1/* OpenSceneGraph example, osgcamera. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#if 1 
    220 
  • OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp

    r6160 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgcatch. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
    1318 
  • OpenSceneGraph/trunk/examples/osgclip/osgclip.cpp

    r6908 r6941  
     1/* OpenSceneGraph example, osgclip. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/MatrixTransform> 
    220#include <osg/ClipNode> 
  • OpenSceneGraph/trunk/examples/osgcluster/broadcaster.cpp

    r4805 r6941  
     1/* OpenSceneGraph example, osgcluster. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <stdio.h> 
    220#include <fcntl.h> 
  • OpenSceneGraph/trunk/examples/osgcluster/broadcaster.h

    r3230 r6941  
     1/* -*-c++-*-  
     2 
     3*  OpenSceneGraph example, osgcluster. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef __BROADCASTER_H 
    222#define __BROADCASTER_H 
  • OpenSceneGraph/trunk/examples/osgcluster/osgcluster.cpp

    r6051 r6941  
     1/* OpenSceneGraph example, osgcluster. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#ifdef USE_MEM_CHECK 
    220#include <mcheck.h> 
  • OpenSceneGraph/trunk/examples/osgcluster/receiver.cpp

    r4805 r6941  
     1/* OpenSceneGraph example, osgcluster. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <stdio.h> 
    220#include <fcntl.h> 
  • OpenSceneGraph/trunk/examples/osgcluster/receiver.h

    r3230 r6941  
     1/* -*-c++-*- 
     2* 
     3*  OpenSceneGraph example, osgcluster. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef __RECEIVER_H 
    222#define __RECEIVER_H 
  • OpenSceneGraph/trunk/examples/osgcompositeviewer/osgcompositeviewer.cpp

    r6852 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgcompositeviewer. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
    1318 
  • OpenSceneGraph/trunk/examples/osgcopy/osgcopy.cpp

    r6137 r6941  
     1/* OpenSceneGraph example, osgcopy. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/MatrixTransform> 
    220#include <osg/Billboard> 
  • OpenSceneGraph/trunk/examples/osgcubemap/osgcubemap.cpp

    r6908 r6941  
     1/* OpenSceneGraph example, osgcubemap. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Group> 
    220#include <osg/StateSet> 
  • OpenSceneGraph/trunk/examples/osgdelaunay/osgdelaunay.cpp

    r5928 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* OpenSceneGraph example, osgdelaunay. 
    22* 
    3 * This application is open source and may be redistributed and/or modified    
    4 * freely and without restriction, both in commericial and non commericial applications, 
    5 * as long as this copyright notice is maintained. 
    6 *  
    7 * This application is distributed in the hope that it will be useful, 
    8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
     18 
    1119 
    1220/** Example of use of delaunay triangulator with constraints. 
  • OpenSceneGraph/trunk/examples/osgdepthpartition/DepthPartitionNode.cpp

    r6248 r6941  
     1/* OpenSceneGraph example, osgdepthpartion. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "DepthPartitionNode.h" 
    220#include <osgUtil/CullVisitor> 
  • OpenSceneGraph/trunk/examples/osgdepthpartition/DepthPartitionNode.h

    r5757 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgdepthpartion. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef _OF_DEPTHPARTITIONNODE_ 
    222#define _OF_DEPTHPARTITIONNODE_ 
  • OpenSceneGraph/trunk/examples/osgdepthpartition/DistanceAccumulator.cpp

    r5757 r6941  
     1/* OpenSceneGraph example, osgdepthpartion. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "DistanceAccumulator.h" 
    220#include <osg/Geode> 
  • OpenSceneGraph/trunk/examples/osgdepthpartition/DistanceAccumulator.h

    r4622 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgdepthpartion. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef _OF_DISTANCEACCUMULATOR_ 
    222#define _OF_DISTANCEACCUMULATOR_ 
  • OpenSceneGraph/trunk/examples/osgdepthpartition/osgdepthpartition.cpp

    r5923 r6941  
     1/* OpenSceneGraph example, osgdepthpartion. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgUtil/UpdateVisitor> 
    220 
  • OpenSceneGraph/trunk/examples/osgdepthshadow/osgdepthshadow.cpp

    r6234 r6941  
     1/* OpenSceneGraph example, osgdepthshadow. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osgdistortion. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/GLExtensions> 
    220#include <osg/Node> 
  • OpenSceneGraph/trunk/examples/osgfadetext/osgfadetext.cpp

    r6283 r6941  
     1/* OpenSceneGraph example, osgfadetext. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgforest/osgforest.cpp

    r5923 r6941  
     1/* OpenSceneGraph example, osgforest. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/AlphaFunc> 
    220#include <osg/Billboard> 
  • OpenSceneGraph/trunk/examples/osgfxbrowser/Frame.cpp

    r5187 r6941  
     1/* OpenSceneGraph example, osgfxbrowser. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "Frame.h" 
    220 
  • OpenSceneGraph/trunk/examples/osgfxbrowser/Frame.h

    r3529 r6941  
     1/* -*-c++-*- 
     2* 
     3*  OpenSceneGraph example, osgfxbrowser. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef FRAME_H_ 
    222#define FRAME_H_ 
  • OpenSceneGraph/trunk/examples/osgfxbrowser/osgfxbrowser.cpp

    r6909 r6941  
     1/* OpenSceneGraph example, osgfxbrowser. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Group> 
    220#include <osg/Geometry> 
  • OpenSceneGraph/trunk/examples/osggeodemo/osggeodemo.cpp

    r5927 r6941  
    11// Geo demo written by Geoff Michel, November 2002. 
     2/* OpenSceneGraph example, osggeodemo. 
     3* 
     4*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     5*  of this software and associated documentation files (the "Software"), to deal 
     6*  in the Software without restriction, including without limitation the rights 
     7*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     8*  copies of the Software, and to permit persons to whom the Software is 
     9*  furnished to do so, subject to the following conditions: 
     10* 
     11*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     12*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     13*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     14*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     15*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     16*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     17*  THE SOFTWARE. 
     18*/ 
    219 
    320#include <stdio.h> 
  • OpenSceneGraph/trunk/examples/osggeometry/osggeometry.cpp

    r6051 r6941  
     1/* OpenSceneGraph example, osggeometry. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/Geometry> 
  • OpenSceneGraph/trunk/examples/osghangglide/GliderManipulator.cpp

    r5863 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "GliderManipulator.h" 
    220#include <osg/Notify> 
  • OpenSceneGraph/trunk/examples/osghangglide/GliderManipulator.h

    r5328 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osghangglide. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
    1219*/ 
    13  
     20  
    1421#ifndef OSGGA_GliderMANIPULATOR 
    1522#define OSGGA_GliderMANIPULATOR 1 
  • OpenSceneGraph/trunk/examples/osghangglide/base.cpp

    r1697 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <math.h> 
    220 
  • OpenSceneGraph/trunk/examples/osghangglide/hat.cpp

    r1697 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#ifdef _MSC_VER 
    220#include <Windows.h> 
  • OpenSceneGraph/trunk/examples/osghangglide/hat.h

    r1697 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osghangglide. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef __HAT_H 
    222#define __HAT_H 
  • OpenSceneGraph/trunk/examples/osghangglide/osghangglide.cpp

    r5909 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Group> 
    220#include <osg/Notify> 
  • OpenSceneGraph/trunk/examples/osghangglide/sky.cpp

    r3365 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <math.h> 
    220 
  • OpenSceneGraph/trunk/examples/osghangglide/tank.cpp

    r1697 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <math.h> 
    220 
  • OpenSceneGraph/trunk/examples/osghangglide/terrain.cpp

    r1697 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119// #include <math.h> 
    220 
  • OpenSceneGraph/trunk/examples/osghangglide/terrain_coords.h

    r1697 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osghangglide. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#if defined(WIN32) && !(defined(__CYGWIN__) || defined(__MINGW32__)) 
    222    // disable the double to float errors. 
  • OpenSceneGraph/trunk/examples/osghangglide/terrain_normals.h

    r1697 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osghangglide. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#if defined(WIN32) && !(defined(__CYGWIN__) || defined(__MINGW32__)) 
    222    // disable the double to float errors. 
  • OpenSceneGraph/trunk/examples/osghangglide/terrain_texcoords.h

    r1697 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osghangglide. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#if defined(WIN32) && !(defined(__CYGWIN__) || defined(__MINGW32__)) 
    222    // disable the double to float errors. 
  • OpenSceneGraph/trunk/examples/osghangglide/trees.cpp

    r1697 r6941  
     1/* OpenSceneGraph example, osghangglide. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <stdlib.h> 
    220 
  • OpenSceneGraph/trunk/examples/osghud/osghud.cpp

    r6916 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osghud. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
    1318 
  • OpenSceneGraph/trunk/examples/osgimpostor/TestManipulator.cpp

    r5371 r6941  
     1/* OpenSceneGraph example, osgimpostor. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "TestManipulator.h" 
    220#include <osg/Notify> 
  • OpenSceneGraph/trunk/examples/osgimpostor/TestManipulator.h

    r2235 r6941  
    1 //C++ header - Open Scene Graph - Copyright (C) 1998-2002 Robert Osfield 
    2 //Distributed under the terms of the GNU Library General Public License (LGPL) 
    3 //as published by the Free Software Foundation. 
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgimpostor. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
    420 
    521#ifndef OSGGA_TESTMANIPULATOR 
  • OpenSceneGraph/trunk/examples/osgimpostor/osgimpostor.cpp

    r5927 r6941  
     1/* OpenSceneGraph example, osgimpostor. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geometry> 
    220#include <osg/Material> 
  • OpenSceneGraph/trunk/examples/osgintersection/osgintersection.cpp

    r6177 r6941  
     1/* OpenSceneGraph example, osgintersection. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/ArgumentParser> 
    220#include <osg/ApplicationUsage> 
  • OpenSceneGraph/trunk/examples/osgintrospection/osgintrospection.cpp

    r6303 r6941  
     1/* OpenSceneGraph example, osgintrospection. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
     19 
    120#include <osg/ref_ptr> 
    221 
  • OpenSceneGraph/trunk/examples/osgkeyboard/osgkeyboard.cpp

    r6157 r6941  
     1/* OpenSceneGraph example, osgkeyboard. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220#include <osg/io_utils> 
  • OpenSceneGraph/trunk/examples/osgkeyboardmouse/osgkeyboardmouse.cpp

    r6913 r6941  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
    2 // 
     1/* OpenSceneGraph example, osgkeyboardmouse. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    319// Simple example of use of osgViewer::GraphicsWindow + Viewer 
    420// example that provides the user with control over view position with basic picking. 
  • OpenSceneGraph/trunk/examples/osglauncher/osglauncher.cpp

    r5951 r6941  
     1/* OpenSceneGraph example, osglauncher. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119//#include <cstdio> 
    220//#include <cstdlib> 
  • OpenSceneGraph/trunk/examples/osglight/osglight.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osglight. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osglightpoint/osglightpoint.cpp

    r5927 r6941  
     1/* OpenSceneGraph example, osglightpoint. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/GL> 
    220#include <osgViewer/Viewer> 
  • OpenSceneGraph/trunk/examples/osglogicop/osglogicop.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osglogicop. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/Group> 
  • OpenSceneGraph/trunk/examples/osglogo/osglogo.cpp

    r6280 r6941  
     1/* OpenSceneGraph example, osglogo. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/ShapeDrawable> 
  • OpenSceneGraph/trunk/examples/osgmanipulator/osgmanipulator.cpp

    r6281 r6941  
    1 // --c++-- 
     1/* OpenSceneGraph example, osgmanipulator. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    219#include <osgDB/ReadFile> 
    320#include <osgUtil/Optimizer> 
     
    202219                    break; 
    203220                } 
    204                 default: 
    205                     break; 
     221        default: 
     222            break; 
    206223            } 
    207224 
  • OpenSceneGraph/trunk/examples/osgmotionblur/osgmotionblur.cpp

    r6916 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgmotionblur. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
     18 
    1119 
    1220#include <osgDB/ReadFile> 
  • OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp

    r6935 r6941  
    1 // -*-c++-*- 
     1/* OpenSceneGraph example, osgmovie. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
    218 
    319#include <osgViewer/Viewer> 
     
    260276                                           0.0f,image->t(), image->s(),0.0f); 
    261277 
     278        osg::TextureRectangle* texture = new osg::TextureRectangle(image); 
     279        texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); 
     280        texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE); 
     281         
     282         
    262283        pictureQuad->getOrCreateStateSet()->setTextureAttributeAndModes(0, 
    263                     new osg::TextureRectangle(image), 
    264                     osg::StateAttribute::ON); 
    265                      
     284                                                                        texture, 
     285                                                                        osg::StateAttribute::ON); 
     286         
    266287        return pictureQuad; 
    267288    } 
     
    274295                                     
    275296        osg::Texture2D* texture = new osg::Texture2D(image); 
    276         texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR);   
    277                                         
     297        texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); 
     298        texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); 
     299        texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE); 
     300         
     301         
    278302        pictureQuad->getOrCreateStateSet()->setTextureAttributeAndModes(0, 
    279303                    texture, 
  • OpenSceneGraph/trunk/examples/osgmultitexture/osgmultitexture.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osgmultitexture. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgoccluder/osgoccluder.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osgoccluder. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgpagedlod/osgpagedlod.cpp

    r4385 r6941  
     1/* OpenSceneGraph example, osgpagedlod. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Group> 
    220#include <osg/Notify> 
  • OpenSceneGraph/trunk/examples/osgparametric/osgparametric.cpp

    r6864 r6941  
     1/* OpenSceneGraph example, osgparametric. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Vec3> 
    220#include <osg/Vec4> 
  • OpenSceneGraph/trunk/examples/osgparticle/osgparticle.cpp

    r5927 r6941  
     1/* OpenSceneGraph example, osgparticle. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgparticleeffects/osgparticleeffects.cpp

    r5954 r6941  
     1/* OpenSceneGraph example, osgparticleeffects. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
     19 
    120#include <osgViewer/Viewer> 
    221 
  • OpenSceneGraph/trunk/examples/osgphotoalbum/ImageReaderWriter.cpp

    r5328 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified under   
    4  * the terms of the GNU Public License (GPL) version 1.0 or  
    5  * (at your option) any later version. 
    6  *  
    7  * This library is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    10  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgphotoalbum. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1117*/ 
     18 
    1219 
    1320#include "ImageReaderWriter.h" 
  • OpenSceneGraph/trunk/examples/osgphotoalbum/ImageReaderWriter.h

    r6267 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified under   
    4  * the terms of the GNU Public License (GPL) version 1.0 or  
    5  * (at your option) any later version. 
    6  *  
    7  * This library is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    10  * OpenSceneGraph Public License for more details. 
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgphotoalbum. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
    1119*/ 
    1220 
  • OpenSceneGraph/trunk/examples/osgphotoalbum/PhotoArchive.cpp

    r5954 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified under   
    4  * the terms of the GNU Public License (GPL) version 1.0 or  
    5  * (at your option) any later version. 
    6  *  
    7  * This library is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    10  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgphotoalbum. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1117*/ 
    1218 
  • OpenSceneGraph/trunk/examples/osgphotoalbum/PhotoArchive.h

    r5328 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified under   
    4  * the terms of the GNU Public License (GPL) version 1.0 or  
    5  * (at your option) any later version. 
    6  *  
    7  * This library is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    10  * OpenSceneGraph Public License for more details. 
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgphotoalbum. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
    1119*/ 
    1220 
  • OpenSceneGraph/trunk/examples/osgphotoalbum/osgphotoalbum.cpp

    r6051 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified under   
    4  * the terms of the GNU Public License (GPL) version 1.0 or  
    5  * (at your option) any later version. 
    6  *  
    7  * This library is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    10  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgphotoalbum. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1117*/ 
    1218 
  • OpenSceneGraph/trunk/examples/osgpick/osgpick.cpp

    r6916 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgpick. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
     18 
    1319/* osgpick sample 
    1420* demonstrate use of osgUtil/PickVisitor for picking in a HUD or 
  • OpenSceneGraph/trunk/examples/osgplanets/osgplanets.cpp

    r5954 r6941  
     1/* OpenSceneGraph example, osgplanets. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119/* details about distances and rotation on http://www.solarviews.com/eng/solarsys.htm */ 
    220 
  • OpenSceneGraph/trunk/examples/osgpoints/osgpoints.cpp

    r5954 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgpoints. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgpointsprite/osgpointsprite.cpp

    r5954 r6941  
     1/* OpenSceneGraph example, osgpointsprite. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/PointSprite> 
    220#include <osg/BlendFunc> 
  • OpenSceneGraph/trunk/examples/osgprecipitation/osgprecipitation.cpp

    r6051 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgprecipitation. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osgprerender. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/GLExtensions> 
    220#include <osg/Node> 
  • OpenSceneGraph/trunk/examples/osgprerendercubemap/osgprerendercubemap.cpp

    r6248 r6941  
     1/* OpenSceneGraph example, osgprerendercubemap. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgreflect/osgreflect.cpp

    r6916 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgreflect. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgscalarbar/osgscalarbar.cpp

    r5954 r6941  
     1/* OpenSceneGraph example, osgscalarbar. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/ShapeDrawable> 
  • OpenSceneGraph/trunk/examples/osgscribe/osgscribe.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osgscribe. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/Group> 
  • OpenSceneGraph/trunk/examples/osgsequence/osgsequence.cpp

    r6912 r6941  
    1 // -*-c++-*- 
    2  
    3 /* 
    4  * This application is open source and may be redistributed and/or modified    
    5  * freely and without restriction, both in commericial and non commericial 
    6  * applications,as long as this copyright notice is maintained. 
    7  *  
    8  * This application is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgsequence. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1117*/ 
    1218 
  • OpenSceneGraph/trunk/examples/osgshaders/GL2Scene.cpp

    r6051 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 
    3  * 
    4  * This application is open source and may be redistributed and/or modified    
    5  * freely and without restriction, both in commericial and non commericial applications, 
    6  * as long as this copyright notice is maintained. 
    7  *  
    8  * This application is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgshaders. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1117*/ 
    1218 
  • OpenSceneGraph/trunk/examples/osgshaders/GL2Scene.h

    r5328 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 
    3  * 
    4  * This application is open source and may be redistributed and/or modified    
    5  * freely and without restriction, both in commericial and non commericial applications, 
    6  * as long as this copyright notice is maintained. 
    7  *  
    8  * This application is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgshaders. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
    1119*/ 
    1220 
  • OpenSceneGraph/trunk/examples/osgshaders/Noise.cpp

    r4138 r6941  
     1/* OpenSceneGraph example, osgshaders. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119/************************************************************************ 
    220 *                                                                      * 
  • OpenSceneGraph/trunk/examples/osgshaders/Noise.h

    r2595 r6941  
     1/* -*-c++-*- 
     2* 
     3*  OpenSceneGraph example, osgshaders. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
     21 
    122/************************************************************************ 
    223 *                                                                      * 
  • OpenSceneGraph/trunk/examples/osgshaders/osgshaders.cpp

    r5956 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 
    3  * 
    4  * This application is open source and may be redistributed and/or modified    
    5  * freely and without restriction, both in commericial and non commericial applications, 
    6  * as long as this copyright notice is maintained. 
    7  *  
    8  * This application is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgshaders. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1117*/ 
    1218 
  • OpenSceneGraph/trunk/examples/osgshaderterrain/osgshaderterrain.cpp

    r6088 r6941  
     1/* OpenSceneGraph example, osgshaderterrain. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/AlphaFunc> 
    220#include <osg/Billboard> 
  • OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp

    r6865 r6941  
     1/* OpenSceneGraph example, osgshadow. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/ArgumentParser> 
    220#include <osg/ComputeBoundsVisitor> 
  • OpenSceneGraph/trunk/examples/osgshadowtexture/CreateShadowedScene.cpp

    r5757 r6941  
     1/* OpenSceneGraph example, osgshadowtexture. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Texture2D> 
    220#include <osg/Material> 
  • OpenSceneGraph/trunk/examples/osgshadowtexture/CreateShadowedScene.h

    r1697 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgshadowtexture. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef CREATESHADOWEDSCENE_H 
    222#define CREATESHADOWEDSCENE_H 
  • OpenSceneGraph/trunk/examples/osgshadowtexture/osgshadowtexture.cpp

    r6823 r6941  
     1/* OpenSceneGraph example, osgshadowtexture. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Notify> 
    220#include <osg/MatrixTransform> 
  • OpenSceneGraph/trunk/examples/osgshape/osgshape.cpp

    r5959 r6941  
     1/* OpenSceneGraph example, osgshape. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/ShapeDrawable> 
  • OpenSceneGraph/trunk/examples/osgsimplifier/osgsimplifier.cpp

    r6916 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgsimplifier. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgsimulation/osgsimulation.cpp

    r6933 r6941  
     1/* OpenSceneGraph example, osgsimulation. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#ifdef WIN32 
    220///////////////////////////////////////////////////////////////////////////// 
  • OpenSceneGraph/trunk/examples/osgslice/osgslice.cpp

    r6178 r6941  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
    2 // 
     1/* OpenSceneGraph example, osgslice. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    319// Simple example of use of osg::GraphicContext to create an OpenGL 
    420// graphics window, and OSG for rendering. 
  • OpenSceneGraph/trunk/examples/osgspacewarp/osgspacewarp.cpp

    r6422 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgspacewarp. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgspheresegment/osgspheresegment.cpp

    r6779 r6941  
     1/* OpenSceneGraph example, osgspheresegment. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osgViewer/Viewer> 
    220 
  • OpenSceneGraph/trunk/examples/osgspotlight/osgspotlight.cpp

    r5959 r6941  
     1/* OpenSceneGraph example, osgspotlight. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Notify> 
    220#include <osg/MatrixTransform> 
  • OpenSceneGraph/trunk/examples/osgstaticviewer/osgstaticviewer.cpp

    r6927 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgstaticviewer. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgstereoimage/osgstereoimage.cpp

    r6914 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgstereoimage. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
    1318 
  • OpenSceneGraph/trunk/examples/osgteapot/osgteapot.cpp

    r6422 r6941  
     1/* OpenSceneGraph example, osgteapot. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Geode> 
    220#include <osg/TexGen> 
  • OpenSceneGraph/trunk/examples/osgterrain/osgterrain.cpp

    r6864 r6941  
     1/* OpenSceneGraph example, osgterrain. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Group> 
    220#include <osg/Geode> 
  • OpenSceneGraph/trunk/examples/osgtessellate/osgtessellate.cpp

    r5962 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgtessellate. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
  • OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp

    r6087 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgtext. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
    1318 
  • OpenSceneGraph/trunk/examples/osgtexture1D/osgtexture1D.cpp

    r6916 r6941  
     1/* OpenSceneGraph example, osgtexture1D. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Notify> 
    220#include <osg/Texture1D> 
  • OpenSceneGraph/trunk/examples/osgtexture2D/osgtexture2D.cpp

    r6051 r6941  
     1/* OpenSceneGraph example, osgtexture2D. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Node> 
    220#include <osg/Geometry> 
  • OpenSceneGraph/trunk/examples/osgtexture3D/osgtexture3D.cpp

    r5962 r6941  
     1/* OpenSceneGraph example, osgtexture3D. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Node> 
    220#include <osg/Geometry> 
  • OpenSceneGraph/trunk/examples/osgtexturerectangle/osgtexturerectangle.cpp

    r6051 r6941  
    1 // -*-c++-*- 
     1/* OpenSceneGraph example, osgtexturerectangle. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
    218 
    319/* 
  • OpenSceneGraph/trunk/examples/osgunittests/UnitTestFramework.cpp

    r6783 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* OpenSceneGraph example, osgunittests. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1217*/ 
     18 
    1319#include "UnitTestFramework.h" 
    1420 
  • OpenSceneGraph/trunk/examples/osgunittests/UnitTestFramework.h

    r5841 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    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  
    5  * (at your option) any later version.  The full license is in LICENSE file 
    6  * included with this distribution, and on the openscenegraph.org website. 
    7  *  
    8  * This library is distributed in the hope that it will be useful, 
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11  * OpenSceneGraph Public License for more details. 
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgunittests. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
    1219*/ 
    1320 
  • OpenSceneGraph/trunk/examples/osgunittests/UnitTests_osg.cpp

    r6879 r6941  
     1/* OpenSceneGraph example, osgunittests. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "UnitTestFramework.h" 
    220 
  • OpenSceneGraph/trunk/examples/osgunittests/osgunittests.cpp

    r6879 r6941  
     1/* OpenSceneGraph example, osgunittests. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/ArgumentParser> 
    220#include <osg/ApplicationUsage> 
  • OpenSceneGraph/trunk/examples/osgunittests/performance.cpp

    r5226 r6941  
     1/* OpenSceneGraph example, osgunittests. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include "performance.h" 
    220 
  • OpenSceneGraph/trunk/examples/osgunittests/performance.h

    r5219 r6941  
     1/* -*-c++-*-  
     2* 
     3*  OpenSceneGraph example, osgunittests. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121#ifndef PERFORMANCE_H 
    222#define PERFORMANCE_H 1 
  • OpenSceneGraph/trunk/examples/osgvertexprogram/osgvertexprogram.cpp

    r6248 r6941  
     1/* OpenSceneGraph example, osgvertexprogram. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Vec3> 
    220#include <osg/Vec4> 
  • OpenSceneGraph/trunk/examples/osgviewerCocoa/ViewerCocoa.h

    r6901 r6941  
     1/* -*-c++-*- 
     2*  
     3*  OpenSceneGraph example, osgviewerCacoa. 
     4* 
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     6*  of this software and associated documentation files (the "Software"), to deal 
     7*  in the Software without restriction, including without limitation the rights 
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     9*  copies of the Software, and to permit persons to whom the Software is 
     10*  furnished to do so, subject to the following conditions: 
     11* 
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     18*  THE SOFTWARE. 
     19*/ 
     20 
    121// 
    222//  ViewerCocoa.h 
     
    2444 * this header. There are several different techniques ranging from, wrapping  
    2545 * the C++ code in pure C interfaces, to simply using void pointers in this 
    26  * file for any C++ pointers and casting appropriately in the implementation 
     46 
     47* file for any C++ pointers and casting appropriately in the implementation 
    2748 * file. 
    2849 */ 
  • OpenSceneGraph/trunk/examples/osgviewerCocoa/ViewerCocoa.mm

    r6901 r6941  
     1/* OpenSceneGraph example, osgviewerCacoa. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119// 
    220//  ViewerCocoa.mm 
  • OpenSceneGraph/trunk/examples/osgviewerCocoa/main.m

    r5727 r6941  
     1/* OpenSceneGraph example, osgviewerCacoa. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119// 
    220//  main.m 
  • OpenSceneGraph/trunk/examples/osgviewerFLTK/osgviewerFLTK.cpp

    r6864 r6941  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
    2 // (C) 2005 Mike Weiblen http://mew.cx/ released under the OSGPL. 
    3 // Simple example using GLUT to create an OpenGL window and OSG for rendering. 
    4 // Derived from osgGLUTsimple.cpp and osgkeyboardmouse.cpp 
     1/* OpenSceneGraph example, osganimate. 
     2* 
     3*  C++ source file - (C) 2003 Robert Osfield. 
     4*  (C) 2005 Mike Weiblen http://mew.cx/ 
     5* 
     6*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     7*  of this software and associated documentation files (the "Software"), to deal 
     8*  in the Software without restriction, including without limitation the rights 
     9*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     10*  copies of the Software, and to permit persons to whom the Software is 
     11*  furnished to do so, subject to the following conditions: 
     12* 
     13*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     14*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     15*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     16*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     17*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     18*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     19*  THE SOFTWARE. 
     20*/ 
     21 
    522 
    623#include <osgViewer/Viewer> 
  • OpenSceneGraph/trunk/examples/osgviewerGLUT/osgviewerGLUT.cpp

    r6899 r6941  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
     1/* OpenSceneGraph example, osgviewerGlut. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    219// (C) 2005 Mike Weiblen http://mew.cx/ released under the OSGPL. 
    320// Simple example using GLUT to create an OpenGL window and OSG for rendering. 
  • OpenSceneGraph/trunk/examples/osgviewerQT/osgviewerQT.cpp

    r6938 r6941  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
     1/* OpenSceneGraph example, osganimate. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
    218 
    319#include <osgViewer/Viewer> 
  • OpenSceneGraph/trunk/examples/osgviewerSDL/SDLMainForMacOSX.h

    r6214 r6941  
     1/* OpenSceneGraph example, osgviewerSDL. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119/*   SDLMain.m - main entry point for our Cocoa-ized SDL app 
    220       Initial Version: Darrell Walisser <dwaliss1@purdue.edu> 
  • OpenSceneGraph/trunk/examples/osgviewerSDL/SDLMainForMacOSX.m

    r6214 r6941  
     1/* OpenSceneGraph example, osgviewerSDL. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119/*   SDLMain.m - main entry point for our Cocoa-ized SDL app 
    220       Initial Version: Darrell Walisser <dwaliss1@purdue.edu> 
  • OpenSceneGraph/trunk/examples/osgviewerSDL/osgviewerSDL.cpp

    r6864 r6941  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
     1/* OpenSceneGraph example, osgviewerSDL. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    219// (C) 2005 Mike Weiblen http://mew.cx/ released under the OSGPL. 
    320// Simple example using GLUT to create an OpenGL window and OSG for rendering. 
     
    83100    if(linked_version->major == 1 && linked_version->minor == 2) 
    84101    { 
    85         if(linked_version->patch < 10) 
    86         { 
    87             windowWidth = 1280; 
    88             windowHeight = 1024; 
    89         } 
     102    if(linked_version->patch < 10) 
     103    { 
     104        windowWidth = 1280; 
     105        windowHeight = 1024; 
     106    } 
    90107    } 
    91108 
  • OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp

    r5962 r6941  
     1/* OpenSceneGraph example, osgvolume. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
     17*/ 
     18 
    119#include <osg/Node> 
    220#include <osg/Geometry> 
  • OpenSceneGraph/trunk/examples/osgwindows/osgwindows.cpp

    r6916 r6941  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
    2  * 
    3  * This application is open source and may be redistributed and/or modified    
    4  * freely and without restriction, both in commericial and non commericial applications, 
    5  * as long as this copyright notice is maintained. 
    6  *  
    7  * This application is distributed in the hope that it will be useful, 
    8  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     1/* OpenSceneGraph example, osgwindows. 
     2* 
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy 
     4*  of this software and associated documentation files (the "Software"), to deal 
     5*  in the Software without restriction, including without limitation the rights 
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
     7*  copies of the Software, and to permit persons to whom the Software is 
     8*  furnished to do so, subject to the following conditions: 
     9* 
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
     16*  THE SOFTWARE. 
    1017*/ 
    1118 
     
    1320#include <osgUtil/Optimizer> 
    1421#include <osgViewer/Viewer> 
     22 
     23 
    1524#include <iostream> 
    1625