Hi Patrice,
The include/osgViewer/api/X11/GraphicWindowX11 has the Display variable.
public:
// X11 specific access functions
Display* getEventDisplay() const { return _eventDisplay; }
Display* getDisplayToUse() const ;
Window& getParent() { return _parent; }
Window& getWindow() { return _window; }
Cursor getCurrentCursor() { return _currentCursor; }
Or perhaps you could just modify src/osgViewer/GraphicsWindowX11.cpp
directly and the support for the extension directly and then submit to
me to merge and then the whole community can help maintain it ;-)
Cheers,
Robert.
On Wed, Jan 12, 2011 at 8:12 AM, Patrice Defond
<[email protected]> wrote:
> Hi,
>
> Thanks for you answer Robert.
> I have already include GLExtensions.
>
> I try to use GLX_NV_swap_group and for example, there is this function :
>
> Code:
> typedef Bool ( * JOINSWAPGROUPPROC) (Display* dpy, GLXDrawable drawable,
> GLuint group);
>
>
>
> I search to get the current Display*.
>
> Thank you!
>
> Cheers,
> Patrice
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=35566#35566
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org