]> 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 3f045fe0cb037bb625f681610e97b35ac8d87255..d3b96bbd93038e2d44b0430395f60998470e5488 100644 (file)
@@ -35,7 +35,6 @@ class FGEventHandler;
 }
 
 class SGSky;
-extern SGSky *thesky;
 
 class FGRenderer {
 
@@ -51,12 +50,8 @@ public:
 
     void resize(int width, int height );
 
-    // 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 update();
+  
     /** Just pick into the scene and return the pick callbacks on the way ...
      */
     bool pick( std::vector<SGSceneryPick>& pickList,
@@ -77,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;
@@ -89,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);