public class GLFWNativeWGL
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWNativeWGL.Functions
Contains the function pointers loaded from
GLFW.getLibrary(). |
| Modifier and Type | Method and Description |
|---|---|
static long |
glfwGetWGLContext(long window)
Returns the
HGLRC of the specified window. |
static void |
setPath(java.lang.String path)
Overrides the OpenGL shared library that GLFW loads internally.
|
static void |
setPathLWJGL()
Calls
setPath(String) with the path of the OpenGL shared library loaded by LWJGL. |
public static long glfwGetWGLContext(long window)
HGLRC of the specified window.
Note: This function may be called from any thread. Access is not synchronized.
window - the GLFW windowHGLRC of the specified window, or NULL if an error occurred.public static void setPathLWJGL()
setPath(String) with the path of the OpenGL shared library loaded by LWJGL.public static void setPath(@Nullable
java.lang.String path)
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).
path - the OpenGL shared library path, or null to remove the override.Copyright LWJGL. All Rights Reserved. License terms.