Added very basic osgvnc example that uses the LibVNCServer client libries for implementing a vnc client

as an osg::Image with the vnc data stream going to it.
This commit is contained in:
Robert Osfield
2008-10-31 12:03:44 +00:00
parent ae61033a32
commit bad9854d71
6 changed files with 277 additions and 0 deletions

View File

@@ -43,6 +43,8 @@
#include <osgText/Text>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osgGA/StateSetManipulator>
#include <iostream>
@@ -1100,6 +1102,9 @@ int main( int argc, char **argv )
osg::ref_ptr<ForestTechniqueManager> ttm = new ForestTechniqueManager;
// add the stats handler
viewer.addEventHandler(new osgViewer::StatsHandler);
viewer.addEventHandler(new TechniqueEventHandler(ttm.get()));
viewer.addEventHandler(new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()));