Class GLFWNativeEGL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromGLFW.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
glfwGetEGLConfig
(long window) EGLConfig glfwGetEGLConfig(GLFWwindow * window)
static long
glfwGetEGLContext
(long window) EGLContext glfwGetEGLContext(GLFWwindow * window)
static long
EGLDisplay glfwGetEGLDisplay(void)
static long
glfwGetEGLSurface
(long window) EGLSurface glfwGetEGLSurface(GLFWwindow * window)
static void
setEGLPath
(@Nullable 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
(@Nullable 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()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
- 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.
-