Show
Ignore:
Timestamp:
04/07/05 22:20:09 (9 years ago)
Author:
robert
Message:

From Mike Weiblen, ported osgshaders example from osgGL2 to core osg based.

Files:
1 modified

Legend:

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

    r2369 r3984  
    11/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield  
    2  * Copyright (C) 2003 3Dlabs Inc. Ltd. 
     2 * Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 
    33 * 
    44 * This application is open source and may be redistributed and/or modified    
     
    1111*/ 
    1212 
    13 /* file:        examples/osgshaders/osgshaders.cpp 
    14  * author:      Mike Weiblen 2003-09-18 
     13/* file:        examples/osgglsl/osgshaders.cpp 
     14 * author:      Mike Weiblen 2005-04-05 
    1515 * 
    16  * A demo of the OpenGL Shading Language shaders using osgGL2. 
     16 * A demo of the OpenGL Shading Language shaders using core OSG. 
    1717 * 
    1818 * See http://www.3dlabs.com/opengl2/ for more information regarding 
     
    2626#include <osgUtil/Optimizer> 
    2727#include <osgProducer/Viewer> 
    28 #include <osgGL2/Version> 
    2928 
    3029#include "GL2Scene.h" 
     
    7271    args.getApplicationUsage()->setApplicationName(args.getApplicationName()); 
    7372    args.getApplicationUsage()->setDescription(args.getApplicationName() + 
    74             " demonstrates the OpenGL Shading Language using osgGL2"); 
     73            " demonstrates the OpenGL Shading Language using core OSG"); 
    7574    args.getApplicationUsage()->setCommandLineUsage(args.getApplicationName()); 
    7675    args.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 
     
    9998 
    10099    // create the scene 
    101     osg::notify(osg::NOTICE) << "osgGL2 version " << osgGL2GetVersion() << std::endl; 
    102100    GL2ScenePtr gl2Scene = new GL2Scene; 
    103101