Class GLFWNativeGLX
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromGLFW.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
glfwGetGLXContext
(long window) Returns theGLXContext
of the specified window.static long
glfwGetGLXFBConfig
(long window) Returns theGLXFBConfig
that was chosen to create the specified window.static long
glfwGetGLXWindow
(long window) Returns theGLXWindow
of the specified 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
-
glfwGetGLXContext
public static long glfwGetGLXContext(long window) Returns theGLXContext
of the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window
- a GLFW window- Returns:
- the
GLXContext
of the specified window, orNULL
if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.0
-
glfwGetGLXWindow
public static long glfwGetGLXWindow(long window) Returns theGLXWindow
of the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window
- a GLFW window- Returns:
- the
GLXWindow
of the specified window, orNone
if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.2
-
glfwGetGLXFBConfig
public static long glfwGetGLXFBConfig(long window) Returns theGLXFBConfig
that 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
GLXFBConfig
that was chosen to create the specified window, orNULL
if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.4
-
setPath
CallssetPath(String)
with the path of the specifiedSharedLibrary
.Example usage:
GLFWNativeGLX.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.
-