Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frabert opened this issue May 30, 2016 · 1 comment
Open

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

frabert opened this issue May 30, 2016 · 1 comment

Comments

@frabert
Copy link

frabert commented May 30, 2016

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?

@swiftcoder
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants