1 #ifndef __SCENE_PLAIN_OPENSCENEGRAPH_HH_
2 #define __SCENE_PLAIN_OPENSCENEGRAPH_HH_
6 #include <Gui/biasgl.h>
12 #include <osgViewer/Viewer>
13 #include <osgViewer/ViewerEventHandlers>
14 #include <osgDB/ReadFile>
15 #include <Base/Math/Vector3.hh>
17 #include <GLviewer/Scenes/SceneBase.hh>
34 int Init(
unsigned int width = 1200,
unsigned int height = 900);
36 void SetLighting(
bool on);
42 bool Load(std::string filename);
44 int AppendSubTreeFromFile(
const std::string& fileName,
47 int AppendSubTreeFromFile(
const std::string& fileName);
58 osgViewer::GraphicsWindow*
window() {
59 return embedWindow_.get();
83 #endif // __SCENE_PLAIN_OPENSCENEGRAPH_HH_
osg::ref_ptr< osg::Group > rootNode_
osg::ref_ptr< osgViewer::Viewer > sceneView_
osg::ref_ptr< osg::Group > GetRootNode()
Base class for all scenes.
Implements slim openscenegraph scene without extras.
osgViewer::GraphicsWindow * window()
osg::observer_ptr< osgViewer::GraphicsWindow > embedWindow_
osg::ref_ptr< osg::FrameStamp > frameStamp_