Class GLFWNativeEGL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromGLFW.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic longglfwGetEGLConfig(long window) EGLConfig glfwGetEGLConfig(GLFWwindow * window)static longglfwGetEGLContext(long window) EGLContext glfwGetEGLContext(GLFWwindow * window)static longEGLDisplay glfwGetEGLDisplay(void)static longglfwGetEGLSurface(long window) EGLSurface glfwGetEGLSurface(GLFWwindow * window)static voidsetEGLPath(@Nullable String path) Overrides the EGL shared library that GLFW loads internally.static voidsetEGLPath(FunctionProvider sharedLibrary) CallssetEGLPath(String)with the path of the specifiedSharedLibrary.static voidsetGLESPath(@Nullable String path) Overrides the OpenGL ES shared library that GLFW loads internally.static voidsetGLESPath(FunctionProvider sharedLibrary) CallssetGLESPath(String)with the path of the specifiedSharedLibrary.
-
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
CallssetEGLPath(String)with the path of the specifiedSharedLibrary.Example usage:
GLFWNativeEGL.setEGLPath(EGL.getFunctionProvider());- Parameters:
sharedLibrary- aFunctionProviderinstance that will be cast toSharedLibrary
-
setEGLPath
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
DEBUGmode (but not an error).- Parameters:
path- the EGL shared library path, ornullto remove the override.
-
setGLESPath
CallssetGLESPath(String)with the path of the specifiedSharedLibrary.Example usage:
GLFWNativeEGL.setGLESPath(GLES.getFunctionProvider());- Parameters:
sharedLibrary- aFunctionProviderinstance that will be cast toSharedLibrary
-
setGLESPath
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
DEBUGmode (but not an error).- Parameters:
path- the OpenGL ES shared library path, ornullto remove the override.
-