X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2FWindowBuilder.hxx;h=92e158bb84bdedc1d51a37d49556b4671ce6b583;hb=b587400846111cc4d6713dcdd38b715c97923d5a;hp=287d4cee853be84e562a9758caa2fbf0127a4103;hpb=6f802959cef6ed5d00640c80b6209a994ff871b5;p=flightgear.git diff --git a/src/Main/WindowBuilder.hxx b/src/Main/WindowBuilder.hxx index 287d4cee8..92e158bb8 100644 --- a/src/Main/WindowBuilder.hxx +++ b/src/Main/WindowBuilder.hxx @@ -54,13 +54,16 @@ public: * @return the default graphics window */ GraphicsWindow* getDefaultWindow(); + /** Get the name used to look up the default window. + */ + const std::string& getDefaultWindowName() { return defaultWindowName; } protected: WindowBuilder(bool stencil); static osg::GraphicsContext::Traits* makeDefaultTraits(bool stencil); osg::ref_ptr defaultTraits; int defaultCounter; static osg::ref_ptr windowBuilder; - osg::ref_ptr defaultWindow; + static const std::string defaultWindowName; }; /** Silly function for making the default window and camera