Package org.lwjgl.glfw
Class GLFWNativeGLX
java.lang.Object
org.lwjgl.glfw.GLFWNativeGLX
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromGLFW.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic longglfwGetGLXContext(long window) GLXContext glfwGetGLXContext(GLFWwindow * window)static longglfwGetGLXFBConfig(long window) GLXWindow glfwGetGLXFBConfig(GLFWwindow * window)static longglfwGetGLXWindow(long window) GLXWindow glfwGetGLXWindow(GLFWwindow * window)static voidOverrides the OpenGL shared library that GLFW loads internally.static voidsetPath(FunctionProvider sharedLibrary) CallssetPath(String)with the path of the specifiedSharedLibrary.
-
Method Details
-
glfwGetGLXContext
public static long glfwGetGLXContext(long window) GLXContext glfwGetGLXContext(GLFWwindow * window) -
glfwGetGLXWindow
public static long glfwGetGLXWindow(long window) GLXWindow glfwGetGLXWindow(GLFWwindow * window) -
glfwGetGLXFBConfig
public static long glfwGetGLXFBConfig(long window) GLXWindow glfwGetGLXFBConfig(GLFWwindow * window) -
setPath
CallssetPath(String)with the path of the specifiedSharedLibrary.Example usage:
GLFWNativeGLX.setPath(GL.getFunctionProvider());- Parameters:
sharedLibrary- aFunctionProviderinstance 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
DEBUGmode (but not an error).- Parameters:
path- the OpenGL shared library path, ornullto remove the override.
-