gl-rs icon indicating copy to clipboard operation
gl-rs copied to clipboard

How to use gl-rs when a Window is already provided

Open frabert opened this issue 9 years ago • 1 comments

I am trying to use gl-rs in a VST plugin to provide a GUI. The problem is that most of the time the examples suppose the need to create a window using toolkits such as glutin; VSTs, on the other hand, receive a handle from the host application pointing to a native window (see here ) Is there a way to open a OpenGL context there?

frabert avatar May 30 '16 15:05 frabert

That's probably more of an ask for one of glutin or winit, to allow wrapping existing window handles.

The GL API doesn't handle context creation, so you need an intermediary like glutin to handle that.

swiftcoder avatar Apr 19 '18 02:04 swiftcoder