Package org.lwjgl.egl

Class EXTDeviceEnumeration

  • public class EXTDeviceEnumeration
    extends java.lang.Object
    Native bindings to the EXT_device_enumeration extension.

    Increasingly, EGL and its client APIs are being used in place of "native" rendering APIs to implement the basic graphics functionality of native windowing systems. This creates demand for a method to initialize EGL displays and surfaces directly on top of native GPU or device objects rather than native window system objects. The mechanics of enumerating the underlying native devices and constructing EGL displays and surfaces from them have been solved in various platform and implementation- specific ways. The EGL device family of extensions offers a standardized framework for bootstrapping EGL without the use of any underlying "native" APIs or functionality.

    The original EGL_EXT_device_base extension combined the conceptually separate operations of querying the underlying device used by a given EGLDisplay and enumerating devices from scratch. It was later identified that the former is useful even in EGL implementations that have no need or ability to allow enumerating all the devices available on a system. To accommodate this, the extension was split in two.

    Requires EGL 1.5 or an earlier verison of EGL with the EXT_device_enumeration extension.

    • Method Detail

      • neglQueryDevicesEXT

        public static int neglQueryDevicesEXT​(int max_devices,
                                              long devices,
                                              long num_devices)
      • eglQueryDevicesEXT

        public static boolean eglQueryDevicesEXT​(@Nullable
                                                 PointerBuffer devices,
                                                 java.nio.IntBuffer num_devices)
      • eglQueryDevicesEXT

        public static boolean eglQueryDevicesEXT​(@Nullable
                                                 PointerBuffer devices,
                                                 int[] num_devices)
        Array version of: QueryDevicesEXT