Moved REGISTER_WINDOWINGSYSTEMINTERFACE from include/osg/GraphicsContext to include/osgViewer/GraphicsWindow and added OSGVIEWER_EXPORT

This commit is contained in:
Robert Osfield 2018-05-18 14:58:53 +01:00
parent 7602b868f4
commit e3c47b60e0
2 changed files with 5 additions and 4 deletions

View File

@ -597,10 +597,6 @@ struct WindowingSystemInterfaceProxy
osg::ref_ptr<T> _wsi;
};
#define REGISTER_WINDOWINGSYSTEMINTERFACE(ext, classname) \
extern "C" void graphicswindow_##ext(void) {} \
static osg::WindowingSystemInterfaceProxy<classname> s_proxy_##classname(#ext);
}
#endif

View File

@ -273,6 +273,11 @@ class GraphicsWindowEmbedded : public GraphicsWindow
virtual void raiseWindow() {}
};
#define REGISTER_WINDOWINGSYSTEMINTERFACE(ext, classname) \
extern "C" OSGVIEWER_EXPORT void graphicswindow_##ext(void) {} \
static osg::WindowingSystemInterfaceProxy<classname> s_proxy_##classname(#ext);
struct GraphicsWindowFunctionProxy
{
GraphicsWindowFunctionProxy(CGraphicsWindowFunction function) { (function)(); }