Class GLFWNativeEGL

java.lang.Object
org.lwjgl.glfw.GLFWNativeEGL

public class GLFWNativeEGL extends Object
  • Method Details

    • glfwGetEGLDisplay

      public static long glfwGetEGLDisplay()
      EGLDisplay glfwGetEGLDisplay(void)
    • glfwGetEGLContext

      public static long glfwGetEGLContext(long window)
      EGLContext glfwGetEGLContext(GLFWwindow * window)
    • glfwGetEGLSurface

      public static long glfwGetEGLSurface(long window)
      EGLSurface glfwGetEGLSurface(GLFWwindow * window)
    • glfwGetEGLConfig

      public static long glfwGetEGLConfig(long window)
      EGLConfig glfwGetEGLConfig(GLFWwindow * window)
    • setEGLPath

      public static void setEGLPath(FunctionProvider sharedLibrary)
      Calls setEGLPath(String) with the path of the specified SharedLibrary.

      Example usage: GLFWNativeEGL.setEGLPath(EGL.getFunctionProvider());

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

      public static void setEGLPath(@Nullable String path)
      Overrides the EGL 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 EGL. 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 EGL shared library path, or null to remove the override.
    • setGLESPath

      public static void setGLESPath(FunctionProvider sharedLibrary)
      Calls setGLESPath(String) with the path of the specified SharedLibrary.

      Example usage: GLFWNativeEGL.setGLESPath(GLES.getFunctionProvider());

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

      public static void setGLESPath(@Nullable String path)
      Overrides the OpenGL ES 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 ES. 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 ES shared library path, or null to remove the override.