Show
Ignore:
Timestamp:
10/21/14 17:10:27 (21 hours ago)
Author:
robert
Message:

Added shaders to support experimental shader based displacement mapping technique osgTerrain::ShaderTerrain?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/applications/present3D/deprecated/ShowEventHandler.cpp

    r13720 r13890  
    1 /* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield  
     1/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield 
    22 * 
    3  * This software is open source and may be redistributed and/or modified under   
     3 * This software is open source and may be redistributed and/or modified under 
    44 * the terms of the GNU General Public License (GPL) version 2.0. 
    55 * The full license is in LICENSE.txt file included with this distribution,. 
    6  *  
     6 * 
    77 * This software is distributed in the hope that it will be useful, 
    88 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1010 * include LICENSE.txt for more details. 
    1111*/ 
     
    2929        { 
    3030            osg::notify(osg::INFO)<<"ShowEventHandler KEYUP "<<(int)ea.getKey()<<std::endl; 
    31             if (ea.getKey()>=osgGA::GUIEventAdapter::KEY_F1 &&  
     31            if (ea.getKey()>=osgGA::GUIEventAdapter::KEY_F1 && 
    3232                ea.getKey()<=osgGA::GUIEventAdapter::KEY_F8) 
    3333            { 
     
    3535                osg::notify(osg::INFO)<<"   Select "<<child<<std::endl; 
    3636                osg::Switch* showSwitch = dynamic_cast<osg::Switch*>(object); 
    37                 if (showSwitch)  
     37                if (showSwitch) 
    3838                { 
    3939                    if (child<showSwitch->getNumChildren()) 
     
    5353} 
    5454 
    55  
    56 void ShowEventHandler::accept(osgGA::GUIEventHandlerVisitor& v) 
    57 { 
    58     v.visit(*this); 
    59 } 
    60  
    6155void ShowEventHandler::getUsage(osg::ApplicationUsage& /*usage*/) const 
    6256{