Class GLFWNativeEGL
- java.lang.Object
-
- org.lwjgl.glfw.GLFWNativeEGL
-
public class GLFWNativeEGL extends java.lang.ObjectNative bindings to the GLFW library's EGL native access functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGLFWNativeEGL.FunctionsContains the function pointers loaded fromGLFW.getLibrary().
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longglfwGetEGLConfig(long window)Returns theEGLConfigof the specified window.static longglfwGetEGLContext(long window)Returns theEGLContextof the specified window.static longglfwGetEGLDisplay()Returns theEGLDisplayused by GLFW.static longglfwGetEGLSurface(long window)Returns theEGLSurfaceof the specified window.static voidsetEGLPath(java.lang.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(java.lang.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 Detail
-
glfwGetEGLDisplay
public static long glfwGetEGLDisplay()
Returns theEGLDisplayused by GLFW.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
public static void setEGLPath(@Nullable java.lang.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
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
public static void setGLESPath(@Nullable java.lang.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
DEBUGmode (but not an error).- Parameters:
path- the OpenGL ES shared library path, ornullto remove the override.
-
-