Top Description Constructors Methods
org.lwjgl.egl

public Class EXTPlatformBase

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the EXT_platform_base extension.

This extension defines functionality and behavior for EGL implementations that support multiple platforms at runtime. For example, on Linux an EGL implementation could support X11, Wayland, GBM (Generic Buffer Manager), Surface Flinger, and perhaps other platforms.

In particular, this extension defines the following:

  1. A mechanism by which an EGL client can detect which platforms the EGL implementation supports.
  2. New functions that enable an EGL client to specify to which platform a native resource belongs when creating an EGL resource from that native resource. For example, this extension enables an EGL client to specify, when creating an EGLSurface from a native window, that the window belongs to X11.
  3. That an EGL client is not restricted to interacting with a single platform per process. A client process can create and manage EGL resources from multiple platforms.

The generic term 'platform' is used throughout this extension specification rather than 'window system' because not all EGL platforms are window systems. In particular, those platforms that allow headless rendering without a display server, such as GBM, are not window systems.

This extension does not specify behavior specific to any platform, nor does it specify the set of platforms that an EGL implementation may support. Platform-specific details lie outside this extension's scope and are instead described by extensions layered atop this one.

Requires EGL 1.4 and EXT_platform_base to query its existence without a display.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
eglCreatePlatformPixmapSurfaceEXT(long dpy, long config, long native_pixmap, IntBuffer attrib_list)

public static long
eglCreatePlatformPixmapSurfaceEXT(long dpy, long config, long native_pixmap, int[] attrib_list)

Array version of: CreatePlatformPixmapSurfaceEXT

public static long
eglCreatePlatformWindowSurfaceEXT(long dpy, long config, long native_window, IntBuffer attrib_list)

public static long
eglCreatePlatformWindowSurfaceEXT(long dpy, long config, long native_window, int[] attrib_list)

Array version of: CreatePlatformWindowSurfaceEXT

public static long
eglGetPlatformDisplayEXT(int platform, long native_display, IntBuffer attrib_list)

public static long
eglGetPlatformDisplayEXT(int platform, long native_display, int[] attrib_list)

Array version of: GetPlatformDisplayEXT

public static long
neglCreatePlatformPixmapSurfaceEXT(long dpy, long config, long native_pixmap, long attrib_list)

public static long
neglCreatePlatformWindowSurfaceEXT(long dpy, long config, long native_window, long attrib_list)

public static long
neglGetPlatformDisplayEXT(int platform, long native_display, long attrib_list)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EXTPlatformBaseback to summary
protected EXTPlatformBase()

Method Detail

eglCreatePlatformPixmapSurfaceEXTback to summary
public static long eglCreatePlatformPixmapSurfaceEXT(long dpy, long config, long native_pixmap, IntBuffer attrib_list)
Annotations
@NativeType:EGLSurface
eglCreatePlatformPixmapSurfaceEXTback to summary
public static long eglCreatePlatformPixmapSurfaceEXT(long dpy, long config, long native_pixmap, int[] attrib_list)

Array version of: CreatePlatformPixmapSurfaceEXT

Annotations
@NativeType:EGLSurface
eglCreatePlatformWindowSurfaceEXTback to summary
public static long eglCreatePlatformWindowSurfaceEXT(long dpy, long config, long native_window, IntBuffer attrib_list)
Annotations
@NativeType:EGLSurface
eglCreatePlatformWindowSurfaceEXTback to summary
public static long eglCreatePlatformWindowSurfaceEXT(long dpy, long config, long native_window, int[] attrib_list)

Array version of: CreatePlatformWindowSurfaceEXT

Annotations
@NativeType:EGLSurface
eglGetPlatformDisplayEXTback to summary
public static long eglGetPlatformDisplayEXT(int platform, long native_display, IntBuffer attrib_list)
Annotations
@NativeType:EGLDisplay
eglGetPlatformDisplayEXTback to summary
public static long eglGetPlatformDisplayEXT(int platform, long native_display, int[] attrib_list)

Array version of: GetPlatformDisplayEXT

Annotations
@NativeType:EGLDisplay
neglCreatePlatformPixmapSurfaceEXTback to summary
public static long neglCreatePlatformPixmapSurfaceEXT(long dpy, long config, long native_pixmap, long attrib_list)
neglCreatePlatformWindowSurfaceEXTback to summary
public static long neglCreatePlatformWindowSurfaceEXT(long dpy, long config, long native_window, long attrib_list)
neglGetPlatformDisplayEXTback to summary
public static long neglGetPlatformDisplayEXT(int platform, long native_display, long attrib_list)