[osg-users] Issue Subclassing GraphicsWindowX11
Robert Osfield
robert.osfield at gmail.com
Thu May 28 00:56:40 PDT 2015
Hi Karl,
I haven't heard of this specific problem before, but then most users won't
be subclassing from GraphicsWindowX11. In principle I can't see any reason
why it wouldn't work. Without code in front of me that fails to compile I
can only provides guesses as to what is amiss - my best guess is that
either a X11 header needs to be added, or the ordering needs to be adjusted.
I can't be any more specific without seeing the problem first hand and
attempting to resolve it.
Robert.
On 27 May 2015 at 15:32, Cary, Karl A. <KARL.A.CARY at leidos.com> wrote:
> I need to subclass the GraphicsWindowX11 class in order to provide a
> custom swapBuffersImplementation. However, when I do this I then get a
> really random error in the middle of one of my enumerations (expected
> identifier before numeric constant). It happens when I include
> osgViewer/api/X11/GraphicsWindowX11, which I have to include in order to
> subclass GraphicsWindowX11. If not I am told 'expected class name before
> {'. As for the enumeration, it happens on the definition of an enumeration
> value called 'None' (NOTE: the value is called None, not the enumeration).
> It is a 3rd party header/library so it cannot be changed. Any idea what is
> going on? Or is there a different way I need to be
> including/subclassing/declaring GraphicsWindowX11? Thank you.
>
> #include <osgViewer/GraphicsWindow>
> #include <osgViewer/api/X11/GraphicsWindowX11>
>
> class MyWindow : public osgViewer::GraphicsWindowX11
> {
> public:
> MyWindow(osg::GraphicsContext::Traits* traits):
> osgViewer::GraphicsWindowX11(traits) {}
>
> virtual void swapBuffersImplementation();
> };
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150528/455118c0/attachment-0003.htm>
More information about the osg-users
mailing list