Perl-GPU / OpenGL-Modern

Perl OpenGL bindings for modern OpenGL 3.1-4.x
7 stars 5 forks source link

X11::GLX as possible OpenGL::GLX support #62

Open devel-chm opened 7 years ago

devel-chm commented 7 years ago

@nrdvana has recently released his X11::GLX module providing the GLX to OpenGL glue needed for X11 programming. He has also released X11::Xlib this spring for more general X11 programming. I was able to build X11:Xlib on cygwin/win7 but there were test failures for X11::GLX. If those problems can be resolved, this module could be the basis for the desired OpenGL::GLX functionality from OpenGL to make it (and more!) available for OpenGL::Modern users.

https://github.com/nrdvana/perl-X11-GLX https://metacpan.org/pod/X11::GLX

nrdvana commented 7 years ago

I'd be happy to assist adding any API you need in the X11::GLX module.

But also, in my recent experience working with Xlib, I've learned that it's really a mess, and that building on xcb (the new C bindings for X11) would be preferred. However, all the glX functions require a "Display" and this is specific to Xlib. xcb uses "xcb_connection" for its connections. If anyone knows a way to make GLX functions operate directly on xcb, I'd be interested to know.