Class GLFWNativeGLX

java.lang.Object
org.lwjgl.glfw.GLFWNativeGLX

public class GLFWNativeGLX extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Contains the function pointers loaded from GLFW.getLibrary().
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    glfwGetGLXContext(long window)
    GLXContext glfwGetGLXContext(GLFWwindow * window)
    static boolean
    glfwGetGLXFBConfig(long window, org.lwjgl.PointerBuffer config)
    int glfwGetGLXFBConfig(GLFWwindow * window, GLXFBConfig * config)
    static long
    glfwGetGLXWindow(long window)
    GLXWindow glfwGetGLXWindow(GLFWwindow * window)
    static int
    nglfwGetGLXFBConfig(long window, long config)
    int glfwGetGLXFBConfig(GLFWwindow * window, GLXFBConfig * config)
    static void
    setPath(@Nullable String path)
    Overrides the OpenGL shared library that GLFW loads internally.
    static void
    setPath(org.lwjgl.system.FunctionProvider sharedLibrary)
    Calls setPath(String) with the path of the specified SharedLibrary.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • glfwGetGLXContext

      @NativeType("GLXContext") public static long glfwGetGLXContext(@NativeType("GLFWwindow *") long window)
      GLXContext glfwGetGLXContext(GLFWwindow * window)
    • glfwGetGLXWindow

      @NativeType("GLXWindow") public static long glfwGetGLXWindow(@NativeType("GLFWwindow *") long window)
      GLXWindow glfwGetGLXWindow(GLFWwindow * window)
    • nglfwGetGLXFBConfig

      public static int nglfwGetGLXFBConfig(long window, long config)
      int glfwGetGLXFBConfig(GLFWwindow * window, GLXFBConfig * config)
    • glfwGetGLXFBConfig

      @NativeType("int") public static boolean glfwGetGLXFBConfig(@NativeType("GLFWwindow *") long window, @NativeType("GLXFBConfig *") org.lwjgl.PointerBuffer config)
      int glfwGetGLXFBConfig(GLFWwindow * window, GLXFBConfig * config)
    • setPath

      public static void setPath(org.lwjgl.system.FunctionProvider sharedLibrary)
      Calls setPath(String) with the path of the specified SharedLibrary.

      Example usage: GLFWNativeGLX.setPath(GL.getFunctionProvider());

      Parameters:
      sharedLibrary - a FunctionProvider instance that will be cast to SharedLibrary
    • setPath

      public static void setPath(@Nullable 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 DEBUG mode (but not an error).

      Parameters:
      path - the OpenGL shared library path, or null to remove the override.