Package org.lwjgl.glfw
Class GLFWNativeNSGL
- java.lang.Object
-
- org.lwjgl.glfw.GLFWNativeNSGL
-
public class GLFWNativeNSGL extends java.lang.Object
Native bindings to the GLFW library's NSGL native access functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GLFWNativeNSGL.Functions
Contains the function pointers loaded fromGLFW.getLibrary()
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
glfwGetNSGLContext(long window)
Returns theNSOpenGLContext
of the specified GLFW window.static void
setFramework(java.lang.String path)
Overrides the OpenGL framework that GLFW loads internally.static void
setFrameworkLWJGL()
CallssetFramework(String)
with the OpenGL framework loaded by LWJGL.
-
-
-
Method Detail
-
glfwGetNSGLContext
public static long glfwGetNSGLContext(long window)
Returns theNSOpenGLContext
of the specified GLFW window.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
window
- the GLFW window- Returns:
- the
NSOpenGLContext
of the specified window, or nil if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.0
-
setFrameworkLWJGL
public static void setFrameworkLWJGL()
CallssetFramework(String)
with the OpenGL framework loaded by LWJGL.
-
setFramework
public static void setFramework(@Nullable java.lang.String path)
Overrides the OpenGL framework that GLFW loads internally.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).- Parameters:
path
- the OpenGL framework, ornull
to remove the override.
-
-