This class must be used before any EGL function is called. It has the following responsibilities:
EGLCapabilities classes. An EGLCapabilities instance contains flags for functionality that is available in an
EGLDisplay or the EGL client library. Internally, it also contains function pointers that are only valid in that specific EGLDisplay or client library.The EGL library is loaded automatically when this class is initialized. Set the Configuration#EGL_EXPLICIT_INIT option to override this behavior.
Manual loading/unloading can be achieved with the create and destroy functions. The name of the library loaded can be overridden with the
Configuration#EGL_LIBRARY_NAME option.
Instances of EGLCapabilities for an EGLDisplay can be created with the createDisplayCapabilities method. Calling this method is
expensive, so the EGLCapabilities instance should be associated with the EGLDisplay and reused as necessary.
The EGLCapabilities instance for the client library is created automatically when the EGL native library is loaded.
| Modifier and Type | Field and Description |
|---|---|
| private static EGLCapabilities | |
| private static FunctionProvider |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| pack-priv static <T> T | |
| public static void | |
| public static void | |
| private static void | |
| public static void | create(FunctionProvider
the provider of EGL function addresses functionProvider)Initializes EGL with the specified |
| private static EGLCapabilities | |
| public static EGLCapabilities | Returns: theinstancethe EGLDisplay to query dpy)Creates an |
| public static EGLCapabilities | Returns: theinstancethe EGLDisplay to query dpy, int the major EGL version supported by the EGLDisplay, as returned by majorVersion, int EGL10#eglInitializethe minor EGL version supported by the EGLDisplay, as returned by minorVersion)EGL10#eglInitializeCreates an |
| public static void | |
| public static EGLCapabilities | |
| public static FunctionProvider |
| caps | back to summary |
|---|---|
| private static EGLCapabilities caps
| |
| functionProvider | back to summary |
|---|---|
| private static FunctionProvider functionProvider
| |
| EGL | back to summary |
|---|---|
| private EGL() | |
| addEGLVersions | back to summary |
|---|---|
| private static void addEGLVersions(int MAJOR, int MINOR, Set<String> supportedExtensions) | |
| addExtensions | back to summary |
|---|---|
| private static void addExtensions(String extensionsString, Set<String> supportedExtensions) | |
| check | back to summary |
|---|---|
| pack-priv static <T> T check(T t) | |
| create | back to summary |
|---|---|
| public static void create() Loads the EGL native library, using the default library name. | |
| create | back to summary |
|---|---|
| public static void create(String libName) Loads the EGL native library, using the specified library name.
| |
| create | back to summary |
|---|---|
| private static void create(SharedLibrary EGL) | |
| create | back to summary |
|---|---|
| public static void create(FunctionProvider functionProvider) Initializes EGL with the specified
| |
| createClientCapabilities | back to summary |
|---|---|
| private static EGLCapabilities createClientCapabilities() | |
| createDisplayCapabilities | back to summary |
|---|---|
| public static EGLCapabilities createDisplayCapabilities(long dpy) Creates an This method call is relatively expensive. The result should be cached and reused.
| |
| createDisplayCapabilities | back to summary |
|---|---|
| public static EGLCapabilities createDisplayCapabilities(long dpy, int majorVersion, int minorVersion) Creates an This method call is relatively expensive. The result should be cached and reused.
| |
| destroy | back to summary |
|---|---|
| public static void destroy() Unloads the EGL native library. | |
| getCapabilities | back to summary |
|---|---|
| public static EGLCapabilities getCapabilities() Returns the | |
| getFunctionProvider | back to summary |
|---|---|
| public static FunctionProvider getFunctionProvider() Returns the | |