public class GLFWNativeEGL
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWNativeEGL.Functions
Contains the function pointers loaded from
GLFW.getLibrary(). |
| Modifier and Type | Method and Description |
|---|---|
static long |
glfwGetEGLContext(long window)
Returns the
EGLContext of the specified window. |
static long |
glfwGetEGLDisplay()
Returns the
EGLDisplay used by GLFW. |
static long |
glfwGetEGLSurface(long window)
Returns the
EGLSurface of the specified window. |
static void |
setEGLPath(java.lang.String path)
Overrides the EGL shared library that GLFW loads internally.
|
static void |
setEGLPathLWJGL()
Calls
setEGLPath(String) with the path of the EGL shared library loaded by LWJGL. |
static void |
setGLESPath(java.lang.String path)
Overrides the OpenGL ES shared library that GLFW loads internally.
|
static void |
setGLESPathLWJGL()
Calls
setGLESPath(String) with the path of the OpenGL ES shared library loaded by LWJGL. |
public static long glfwGetEGLDisplay()
EGLDisplay used by GLFW.
This function may be called from any thread. Access is not synchronized.
EGLDisplay used by GLFW, or EGL10.EGL_NO_DISPLAY if an error occuredpublic static long glfwGetEGLContext(long window)
EGLContext of the specified window.
This function may be called from any thread. Access is not synchronized.
window - a GLFW windowEGLContext of the specified window, or EGL10.EGL_NO_CONTEXT if an error occurredpublic static long glfwGetEGLSurface(long window)
EGLSurface of the specified window.
This function may be called from any thread. Access is not synchronized.
EGLSurface of the specified window, or EGL10.EGL_NO_SURFACE if an error occurredpublic static void setEGLPathLWJGL()
setEGLPath(String) with the path of the EGL shared library loaded by LWJGL.public static void setEGLPath(@Nullable
java.lang.String path)
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).
path - the EGL shared library path, or null to remove the override.public static void setGLESPathLWJGL()
setGLESPath(String) with the path of the OpenGL ES shared library loaded by LWJGL.public static void setGLESPath(@Nullable
java.lang.String path)
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).
path - the OpenGL ES shared library path, or null to remove the override.Copyright LWJGL. All Rights Reserved. License terms.