public class GLFWNativeNSGL
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWNativeNSGL.Functions
Contains the function pointers loaded from
GLFW.getLibrary(). |
| Modifier and Type | Method and Description |
|---|---|
static long |
glfwGetNSGLContext(long window)
Returns the
NSOpenGLContext of the specified GLFW window. |
static void |
setFramework(java.lang.String path)
Overrides the OpenGL framework that GLFW loads internally.
|
static void |
setFrameworkLWJGL()
Calls
setFramework(String) with the OpenGL framework loaded by LWJGL. |
public static long glfwGetNSGLContext(long window)
NSOpenGLContext of the specified GLFW window.
Note: This function may be called from any thread. Access is not synchronized.
window - the GLFW windowNSOpenGLContext of the specified window, or nil if an error occurred.public static void setFrameworkLWJGL()
setFramework(String) with the OpenGL framework loaded by LWJGL.public static void setFramework(@Nullable
java.lang.String path)
This is useful when there's a mismatch between the frameworks 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 framework, or null to remove the override.Copyright LWJGL. All Rights Reserved. License terms.