]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.hxx
properly add librt when clock_gettime is used
[flightgear.git] / src / Main / renderer.hxx
index 54a69a1513e91c49f236c7f686ddd517ecf97f3a..d3b96bbd93038e2d44b0430395f60998470e5488 100644 (file)
@@ -35,7 +35,6 @@ class FGEventHandler;
 }
 
 class SGSky;
-extern SGSky *thesky;
 
 class FGRenderer {
 
@@ -47,14 +46,12 @@ public:
     void splashinit();
     void init();
 
-    void resize(int width, int height );
+    void setupView();
 
-    // calling update( refresh_camera_settings = false ) will not
-    // touch window or camera settings.  This is useful for the tiled
-    // renderer which needs to set the view frustum itself.
-    void update( bool refresh_camera_settings);
-    static void update();
+    void resize(int width, int height );
 
+    void update();
+  
     /** Just pick into the scene and return the pick callbacks on the way ...
      */
     bool pick( std::vector<SGSceneryPick>& pickList,
@@ -75,6 +72,8 @@ public:
     */
     void addCamera(osg::Camera* camera, bool useSceneData);
 
+    SGSky* getSky() const { return _sky; }
+    
 protected:
     osg::ref_ptr<osgViewer::Viewer> viewer;
     osg::ref_ptr<flightgear::FGEventHandler> eventHandler;
@@ -87,6 +86,7 @@ protected:
     SGPropertyNode_ptr _panel_hotspots, _sim_delta_sec, _horizon_effect, _altitude_ft;
     SGPropertyNode_ptr _virtual_cockpit;
     SGTimeStamp _splash_time;
+    SGSky* _sky;
 };
 
 bool fgDumpSceneGraphToFile(const char* filename);