Class GLFWNativeEGL
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromGLFW.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
glfwGetEGLConfig
(long window) Returns theEGLConfig
of the specified window.static long
glfwGetEGLContext
(long window) Returns theEGLContext
of the specified window.static long
Returns theEGLDisplay
used by GLFW.static long
glfwGetEGLSurface
(long window) Returns theEGLSurface
of the specified window.static void
setEGLPath
(String path) Overrides the EGL shared library that GLFW loads internally.static void
setEGLPath
(FunctionProvider sharedLibrary) CallssetEGLPath(String)
with the path of the specifiedSharedLibrary
.static void
setGLESPath
(String path) Overrides the OpenGL ES shared library that GLFW loads internally.static void
setGLESPath
(FunctionProvider sharedLibrary) CallssetGLESPath(String)
with the path of the specifiedSharedLibrary
.
-
Method Details
-
glfwGetEGLDisplay
public static long glfwGetEGLDisplay()Returns theEGLDisplay
used by GLFW.Because EGL is initialized on demand, this function will return
EGL10.EGL_NO_DISPLAY
until the first context has been created via EGL.This function may be called from any thread. Access is not synchronized.
- Returns:
- the
EGLDisplay
used by GLFW, orEGL10.EGL_NO_DISPLAY
if an error occured.Possible errors include
NOT_INITIALIZED
. - Since:
- version 3.0
-
glfwGetEGLContext
public static long glfwGetEGLContext(long window) Returns theEGLContext
of the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window
- a GLFW window- Returns:
- the
EGLContext
of the specified window, orEGL10.EGL_NO_CONTEXT
if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.0
-
glfwGetEGLSurface
public static long glfwGetEGLSurface(long window) Returns theEGLSurface
of the specified window.This function may be called from any thread. Access is not synchronized.
- Returns:
- the
EGLSurface
of the specified window, orEGL10.EGL_NO_SURFACE
if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.0
-
glfwGetEGLConfig
public static long glfwGetEGLConfig(long window) Returns theEGLConfig
of the specified window.This function may be called from any thread. Access is not synchronized.
- Returns:
- the
EGLConfig
of the specified window, orEGL10.EGL_NO_SURFACE
if an error occurred.Possible errors include
NO_WINDOW_CONTEXT
andNOT_INITIALIZED
. - Since:
- version 3.4
-
setEGLPath
CallssetEGLPath(String)
with the path of the specifiedSharedLibrary
.Example usage:
GLFWNativeEGL.setEGLPath(EGL.getFunctionProvider());
- Parameters:
sharedLibrary
- aFunctionProvider
instance 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
DEBUG
mode (but not an error).- Parameters:
path
- the EGL shared library path, ornull
to remove the override.
-
setGLESPath
CallssetGLESPath(String)
with the path of the specifiedSharedLibrary
.Example usage:
GLFWNativeEGL.setGLESPath(GLES.getFunctionProvider());
- Parameters:
sharedLibrary
- aFunctionProvider
instance 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
DEBUG
mode (but not an error).- Parameters:
path
- the OpenGL ES shared library path, ornull
to remove the override.
-