Top Description Inners Constructors Methods
org.lwjgl.glfw

public Class GLFWNativeEGL

extends Object
Class Inheritance
Imports
org.lwjgl.system.*, javax.annotation.*, org.lwjgl.egl.EGL, .EGL10, org.lwjgl.opengles.GLES

Native bindings to the GLFW library's EGL native access functions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GLFWNativeEGL.Functions

Contains the function pointers loaded from GLFW.getLibrary().

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

the EGLConfig of the specified window, or EGL10#EGL_NO_SURFACE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetEGLConfig
(long window)

Returns the EGLConfig of the specified window.

public static long

Returns:

the EGLContext of the specified window, or EGL10#EGL_NO_CONTEXT if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetEGLContext
(long
a GLFW window
window
)

Returns the EGLContext of the specified window.

public static long

Returns:

the EGLDisplay used by GLFW, or EGL10#EGL_NO_DISPLAY if an error occured.

Possible errors include NOT_INITIALIZED.

glfwGetEGLDisplay
()

Returns the EGLDisplay used by GLFW.

public static long

Returns:

the EGLSurface of the specified window, or EGL10#EGL_NO_SURFACE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetEGLSurface
(long window)

Returns the EGLSurface of the specified window.

private static boolean
override(String symbol, String path)

public static void
setEGLPath(FunctionProvider
a FunctionProvider instance that will be cast to SharedLibrary
sharedLibrary
)

Calls setEGLPath(String) with the path of the specified SharedLibrary.

public static void
setEGLPath(String
the EGL shared library path, or null to remove the override.
path
)

Overrides the EGL shared library that GLFW loads internally.

public static void
setGLESPath(FunctionProvider
a FunctionProvider instance that will be cast to SharedLibrary
sharedLibrary
)

Calls setGLESPath(String) with the path of the specified SharedLibrary.

public static void
setGLESPath(String
the OpenGL ES shared library path, or null to remove the override.
path
)

Overrides the OpenGL ES shared library that GLFW loads internally.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GLFWNativeEGLback to summary
protected GLFWNativeEGL()

Method Detail

glfwGetEGLConfigback to summary
public static long glfwGetEGLConfig(long window)

Returns the EGLConfig of the specified window.

This function may be called from any thread. Access is not synchronized.

Returns:long

the EGLConfig of the specified window, or EGL10#EGL_NO_SURFACE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:EGLConfig
Since
version 3.4
glfwGetEGLContextback to summary
public static long glfwGetEGLContext(long window)

Returns the EGLContext of the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

a GLFW window

Returns:long

the EGLContext of the specified window, or EGL10#EGL_NO_CONTEXT if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:EGLContext
Since
version 3.0
glfwGetEGLDisplayback to summary
public static long glfwGetEGLDisplay()

Returns the EGLDisplay 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:long

the EGLDisplay used by GLFW, or EGL10#EGL_NO_DISPLAY if an error occured.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:EGLDisplay
Since
version 3.0
glfwGetEGLSurfaceback to summary
public static long glfwGetEGLSurface(long window)

Returns the EGLSurface of the specified window.

This function may be called from any thread. Access is not synchronized.

Returns:long

the EGLSurface of the specified window, or EGL10#EGL_NO_SURFACE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:EGLSurface
Since
version 3.0
overrideback to summary
private static boolean override(String symbol, String path)
setEGLPathback to summary
public static void setEGLPath(FunctionProvider sharedLibrary)

Calls setEGLPath(String) with the path of the specified SharedLibrary.

Example usage: GLFWNativeEGL.setEGLPath(EGL.getFunctionProvider());

Parameters
sharedLibrary:FunctionProvider

a FunctionProvider instance that will be cast to SharedLibrary

setEGLPathback to summary
public static void setEGLPath(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 DEBUG mode (but not an error).

Parameters
path:String

the EGL shared library path, or null to remove the override.

setGLESPathback to summary
public static void setGLESPath(FunctionProvider sharedLibrary)

Calls setGLESPath(String) with the path of the specified SharedLibrary.

Example usage: GLFWNativeEGL.setGLESPath(GLES.getFunctionProvider());

Parameters
sharedLibrary:FunctionProvider

a FunctionProvider instance that will be cast to SharedLibrary

setGLESPathback to summary
public static void setGLESPath(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 DEBUG mode (but not an error).

Parameters
path:String

the OpenGL ES shared library path, or null to remove the override.

org.lwjgl.glfw back to summary

public final Class GLFWNativeEGL.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from GLFW.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
GetEGLConfig

Function address.

public static final long
GetEGLContext

Function address.

public static final long
GetEGLDisplay

Function address.

public static final long
GetEGLSurface

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GetEGLConfigback to summary
public static final long GetEGLConfig

Function address.

GetEGLContextback to summary
public static final long GetEGLContext

Function address.

GetEGLDisplayback to summary
public static final long GetEGLDisplay

Function address.

GetEGLSurfaceback to summary
public static final long GetEGLSurface

Function address.

Constructor Detail

Functionsback to summary
private Functions()