]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/gui_local.cxx
replace depreciated plib symbols with their new forms
[flightgear.git] / src / GUI / gui_local.cxx
index d4d6cab2be33f8134eb8d47a77d5edd9a816afe6..1ec2b08ed5a24c29bdf8db1dbc67e9a1e7464ab9 100644 (file)
@@ -6,7 +6,6 @@
 #  include <windows.h>
 #endif
 
-#include <GL/glut.h>        // needed before pu.h
 #include <plib/pu.h>        // plib include
 
 #include <FDM/flight.hxx>
 #include <Main/globals.hxx>
 #include <Main/fg_init.hxx>
 #include <Main/fg_props.hxx>
+#include <Main/renderer.hxx>
 #include <Scenery/tilemgr.hxx>
 #include <Time/light.hxx>
 
 #include "gui.h"
 #include "trackball.h"
 
-// from main.cxx
-extern void fgReshape(int, int);
-
 // FOR MOUSE VIEW MODE
 // stashed trackball(_quat0, 0.0, 0.0, 0.0, 0.0);
 static float _quat0[4];
@@ -83,11 +80,9 @@ void reInit(puObject *cb)
 
     fgReInitSubsystems();
 
-    global_tile_mgr.update( fgGetDouble("/environment/visibility-m") );
-    
-    cur_light_params.Update();
+    globals->get_tile_mgr()->update( fgGetDouble("/environment/visibility-m") );
 
-    fgReshape( xsize, ysize );
+    globals->get_renderer()->resize( xsize, ysize );
 
     // BusyCursor(1);