make fontcache globally available
This commit is contained in:
parent
4d9d907c05
commit
d5fd30249f
2 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
|||
#include <simgear/structure/commands.hxx>
|
||||
#include <simgear/misc/sg_path.hxx>
|
||||
|
||||
#include <GUI/new_gui.hxx>
|
||||
|
||||
#include "globals.hxx"
|
||||
#include "renderer.hxx"
|
||||
#include "viewmgr.hxx"
|
||||
|
@ -80,6 +82,7 @@ FGGlobals::FGGlobals() :
|
|||
scenery( NULL ),
|
||||
tile_mgr( NULL ),
|
||||
io( new FGIO ),
|
||||
fontcache ( new FGFontCache ),
|
||||
navlist( NULL ),
|
||||
loclist( NULL ),
|
||||
gslist( NULL ),
|
||||
|
@ -102,6 +105,7 @@ FGGlobals::~FGGlobals()
|
|||
delete props;
|
||||
delete commands;
|
||||
delete io;
|
||||
delete fontcache;
|
||||
delete renderer;
|
||||
delete initial_waypoints;
|
||||
}
|
||||
|
|
|
@ -85,6 +85,7 @@ class FGTileMgr;
|
|||
class FGViewMgr;
|
||||
class FGViewer;
|
||||
class FGRenderer;
|
||||
class FGFontCache;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -197,6 +198,8 @@ private:
|
|||
// Input/Ouput subsystem
|
||||
FGIO *io;
|
||||
|
||||
FGFontCache *fontcache;
|
||||
|
||||
// Navigational Aids
|
||||
FGNavList *navlist;
|
||||
FGNavList *loclist;
|
||||
|
@ -350,6 +353,7 @@ public:
|
|||
inline void set_tile_mgr ( FGTileMgr *t ) { tile_mgr = t; }
|
||||
|
||||
inline FGIO* get_io() const { return io; }
|
||||
inline FGFontCache *get_fontcache() const { return fontcache; }
|
||||
|
||||
inline FGNavList *get_navlist() const { return navlist; }
|
||||
inline void set_navlist( FGNavList *n ) { navlist = n; }
|
||||
|
|
Loading…
Add table
Reference in a new issue