Moved REGISTER_WINDOWINGSYSTEMINTERFACE from include/osg/GraphicsContext to include/osgViewer/GraphicsWindow and added OSGVIEWER_EXPORT
This commit is contained in:
parent
7602b868f4
commit
e3c47b60e0
@ -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
|
||||
|
@ -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)(); }
|
||||
|
Loading…
Reference in New Issue
Block a user