Package org.lwjgl.glfw
Class GLFWNativeWGL
java.lang.Object
org.lwjgl.glfw.GLFWNativeWGL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromGLFW.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
glfwGetWGLContext
(long window) HGLRC glfwGetWGLContext(GLFWwindow * window)
static void
Overrides the OpenGL shared library that GLFW loads internally.static void
setPath
(FunctionProvider sharedLibrary) CallssetPath(String)
with the path of the specifiedSharedLibrary
.
-
Method Details
-
glfwGetWGLContext
public static long glfwGetWGLContext(long window) HGLRC glfwGetWGLContext(GLFWwindow * window)
-
setPath
CallssetPath(String)
with the path of the specifiedSharedLibrary
.Example usage:
GLFWNativeWGL.setPath(GL.getFunctionProvider());
- Parameters:
sharedLibrary
- aFunctionProvider
instance that will be cast toSharedLibrary
-
setPath
Overrides the OpenGL shared library that GLFW loads internally.This is useful when there's a mismatch between the shared libraries loaded by LWJGL and GLFW.
This method must be called before GLFW initializes OpenGL. The override is available only in the default GLFW build bundled with LWJGL. Using the override with a custom GLFW build will produce a warning in
DEBUG
mode (but not an error).- Parameters:
path
- the OpenGL shared library path, ornull
to remove the override.
-