gl-rs
gl-rs copied to clipboard
How to use gl-rs when a Window is already provided
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?
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.