Class GLFWNativeGLX
- java.lang.Object
-
- org.lwjgl.glfw.GLFWNativeGLX
-
public class GLFWNativeGLX extends java.lang.ObjectNative bindings to the GLFW library's GLX native access functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGLFWNativeGLX.FunctionsContains the function pointers loaded fromGLFW.getLibrary().
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longglfwGetGLXContext(long window)Returns theGLXContextof the specified window.static longglfwGetGLXFBConfig(long window)Returns theGLXFBConfigthat was chosen to create the specified window.static longglfwGetGLXWindow(long window)Returns theGLXWindowof the specified window.static voidsetPath(java.lang.String path)Overrides the OpenGL shared library that GLFW loads internally.static voidsetPath(org.lwjgl.system.FunctionProvider sharedLibrary)CallssetPath(String)with the path of the specifiedSharedLibrary.
-
-
-
Method Detail
-
glfwGetGLXContext
public static long glfwGetGLXContext(long window)
Returns theGLXContextof the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window- a GLFW window- Returns:
- the
GLXContextof the specified window, orNULLif an error occurred.Possible errors include
NO_WINDOW_CONTEXTandNOT_INITIALIZED. - Since:
- version 3.0
-
glfwGetGLXWindow
public static long glfwGetGLXWindow(long window)
Returns theGLXWindowof the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window- a GLFW window- Returns:
- the
GLXWindowof the specified window, orNoneif an error occurred.Possible errors include
NO_WINDOW_CONTEXTandNOT_INITIALIZED. - Since:
- version 3.2
-
glfwGetGLXFBConfig
public static long glfwGetGLXFBConfig(long window)
Returns theGLXFBConfigthat was chosen to create the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window- a GLFW window- Returns:
- the
GLXFBConfigthat was chosen to create the specified window, orNULLif an error occurred.Possible errors include
NO_WINDOW_CONTEXTandNOT_INITIALIZED. - Since:
- version 3.4
-
setPath
public static void setPath(org.lwjgl.system.FunctionProvider sharedLibrary)
CallssetPath(String)with the path of the specifiedSharedLibrary.Example usage:
GLFWNativeGLX.setPath(GL.getFunctionProvider());- Parameters:
sharedLibrary- aFunctionProviderinstance that will be cast toSharedLibrary
-
setPath
public static void setPath(@Nullable java.lang.String path)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
DEBUGmode (but not an error).- Parameters:
path- the OpenGL shared library path, ornullto remove the override.
-
-