Moved the REGISTER_WINDOWINGSYSTEMINTERFACE macro into the osgViewer namespace

This commit is contained in:
Robert Osfield 2016-06-02 17:54:24 +01:00
parent 9aef7d2954
commit b1655dd17b
3 changed files with 1 additions and 40 deletions

View File

@ -1097,22 +1097,6 @@ public:
};
}
#if 1
REGISTER_WINDOWINGSYSTEMINTERFACE(Carbon, CarbonWindowingSystemInterface)
#else
#ifdef USE_DARWIN_CARBON_IMPLEMENTATION
RegisterWindowingSystemInterfaceProxy<CarbonWindowingSystemInterface> createWindowingSystemInterfaceProxy;
#endif
// declare C entry point for static compilation.
extern "C" void graphicswindow_Carbon(void)
{
osg::GraphicsContext::setWindowingSystemInterface(new osgViewer::CarbonWindowingSystemInterface());
}
#endif
#endif

View File

@ -1827,18 +1827,6 @@ private:
};
}
#if 1
REGISTER_WINDOWINGSYSTEMINTERFACE(Cocoa, CocoaWindowingSystemInterface)
#else
#ifdef USE_DARWIN_COCOA_IMPLEMENTATION
RegisterWindowingSystemInterfaceProxy<osgViewer::CocoaWindowingSystemInterface> createWindowingSystemInterfaceProxy;
#endif
// declare C entry point for static compilation.
extern "C" void graphicswindow_Cocoa(void)
{
osg::GraphicsContext::setWindowingSystemInterface(new osgViewer::CocoaWindowingSystemInterface());
}
#endif

View File

@ -1224,17 +1224,6 @@ public:
}
};
}//end namspace
#if 1
REGISTER_WINDOWINGSYSTEMINTERFACE(IOS, ConcreteIOSWindowingSystemInterface)
#else
RegisterWindowingSystemInterfaceProxy<osgViewer::ConcreteIOSWindowingSystemInterface> createWindowingSystemInterfaceProxy;
// declare C entry point for static compilation.
extern "C" void graphicswindow_IOS(void)
{
osg::GraphicsContext::setWindowingSystemInterface(new osgViewer::ConcreteIOSWindowingSystemInterface());
}
#endif
}//end namspace