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

WGL not instantiable anymore #171

Closed
httpdigest opened this issue Mar 28, 2016 · 1 comment
Closed

WGL not instantiable anymore #171

httpdigest opened this issue Mar 28, 2016 · 1 comment

Comments

@httpdigest
Copy link
Member

The class org.lwjgl.opengl.WGL has no constructor anymore to instantiate it via:

new WGL(gl = GL.getFunctionProvider())

I need to call WGL functions without having an OpenGL context current to create a context with the Windows platform API.
See: https://github.com/httpdigest/lwjgl3-swt/blob/master/src/org/lwjgl/opengl/swt/PlatformWin32GLCanvas.java

Is there another possibility to call into WGL without instantiating LWJGL and the capabilities?

@Spasi
Copy link
Member

Spasi commented Mar 28, 2016

The binding classes cannot be instantiated anymore and all function addresses have been moved to the capabilities classes. This was part (22e8f34) of the recent function calling optimizations.

This issue is partially fixed by 364b881.

The plan is to make all GLX & WGL extensions usable without a current context. I'll add GLXCapabilities and WGLCapabilities classes and all platform-specific extensions will be removed from GLCapabilities.

@Spasi Spasi closed this as completed in 143459d Mar 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants