Show
Ignore:
Timestamp:
01/05/07 16:54:13 (8 years ago)
Author:
robert
Message:

Ported osgbillboard over to osgViewer

Files:
1 modified

Legend:

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

    r5895 r5911  
    1 // C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. 
    2 // 
    3 // Simple example of use of Producer::RenderSurface to create an OpenGL 
    4 // graphics window, and OSG for rendering. 
    5  
     1#if 1 
    62 
    73#include <osgDB/ReadFile> 
     
    173169    viewer.setSceneData(loadedModel.get()); 
    174170 
    175     viewer.realize(); 
     171    // viewer.realize(); 
    176172 
    177173    unsigned int numFrames = 0; 
     
    184180    return 0; 
    185181} 
     182#else 
     183 
     184#include <osgViewer/Viewer> 
     185#include <osgDB/ReadFile> 
     186 
     187int main( int, char **) 
     188{ 
     189    osgViewer::Viewer viewer; 
     190    viewer.setSceneData(osgDB::readNodeFile("cow.osg")); 
     191    viewer.run(); 
     192} 
     193#endif