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) Returns theEGLConfigof the specified window.static longglfwGetEGLContext(long window) Returns theEGLContextof the specified window.static longReturns theEGLDisplayused by GLFW.static longglfwGetEGLSurface(long window) Returns theEGLSurfaceof the specified window.static voidsetEGLPath(@Nullable String path) Overrides the EGL shared library that GLFW loads internally.static voidsetEGLPath(org.lwjgl.system.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(org.lwjgl.system.FunctionProvider sharedLibrary) CallssetGLESPath(String)with the path of the specifiedSharedLibrary.
-
Method Details
-
glfwGetEGLDisplay
public static long glfwGetEGLDisplay()Returns theEGLDisplayused by GLFW.Because EGL is initialized on demand, this function will return
EGL10.EGL_NO_DISPLAYuntil the first context has been created via EGL.This function may be called from any thread. Access is not synchronized.
- Returns:
- the
EGLDisplayused by GLFW, orEGL10.EGL_NO_DISPLAYif an error occured.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.0
-
glfwGetEGLContext
public static long glfwGetEGLContext(long window) Returns theEGLContextof the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window- a GLFW window- Returns:
- the
EGLContextof the specified window, orEGL10.EGL_NO_CONTEXTif an error occurred.Possible errors include
NO_WINDOW_CONTEXTandNOT_INITIALIZED. - Since:
- version 3.0
-
glfwGetEGLSurface
public static long glfwGetEGLSurface(long window) Returns theEGLSurfaceof the specified window.This function may be called from any thread. Access is not synchronized.
- Returns:
- the
EGLSurfaceof the specified window, orEGL10.EGL_NO_SURFACEif an error occurred.Possible errors include
NO_WINDOW_CONTEXTandNOT_INITIALIZED. - Since:
- version 3.0
-
glfwGetEGLConfig
public static long glfwGetEGLConfig(long window) Returns theEGLConfigof the specified window.This function may be called from any thread. Access is not synchronized.
- Returns:
- the
EGLConfigof the specified window, orEGL10.EGL_NO_SURFACEif an error occurred.Possible errors include
NO_WINDOW_CONTEXTandNOT_INITIALIZED. - Since:
- version 3.4
-
setEGLPath
public static void setEGLPath(org.lwjgl.system.FunctionProvider sharedLibrary) 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
public static void setGLESPath(org.lwjgl.system.FunctionProvider sharedLibrary) 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.
-