Package org.lwjgl.egl
Class ANDROIDCreateNativeClientBuffer
java.lang.Object
org.lwjgl.egl.ANDROIDCreateNativeClientBuffer
Native bindings to the ANDROID_create_native_client_buffer extension.
This extension allows creating an EGLClientBuffer
backed by an Android window buffer (struct ANativeWindowBuffer
) which can be later
used to create an EGLImage
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The usage bits of the buffer data.static final int
Indicates that the created buffer must have a hardware-protected path to external display sink.static final int
The buffer will be used to create a renderbuffer.static final int
The buffer will be used to create a texture. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
eglCreateNativeClientBufferANDROID
(int[] attrib_list) Array version of:CreateNativeClientBufferANDROID
static long
eglCreateNativeClientBufferANDROID
(IntBuffer attrib_list) May be used to create anEGLClientBuffer
backed by anANativeWindowBuffer
struct.static long
neglCreateNativeClientBufferANDROID
(long attrib_list) Unsafe version of:CreateNativeClientBufferANDROID
-
Field Details
-
EGL_NATIVE_BUFFER_USAGE_ANDROID
public static final int EGL_NATIVE_BUFFER_USAGE_ANDROIDThe usage bits of the buffer data.- See Also:
-
EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID
public static final int EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROIDIndicates that the created buffer must have a hardware-protected path to external display sink. If a hardware-protected path is not available, then either don't composite only this buffer (preferred) to the external sink, or (less desirable) do not route the entire composition to the external sink.- See Also:
-
EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID
public static final int EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROIDThe buffer will be used to create a renderbuffer. This flag must not be set ifNATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID
is set.- See Also:
-
EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID
public static final int EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROIDThe buffer will be used to create a texture. This flag must not be set ifNATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID
is set.- See Also:
-
-
Method Details
-
neglCreateNativeClientBufferANDROID
public static long neglCreateNativeClientBufferANDROID(long attrib_list) Unsafe version of:CreateNativeClientBufferANDROID
-
eglCreateNativeClientBufferANDROID
May be used to create anEGLClientBuffer
backed by anANativeWindowBuffer
struct. EGL implementations must guarantee that the lifetime of the returnedEGLClientBuffer
is at least as long as theEGLImage(s)
it is bound to; theEGLClientBuffer
must be destroyed no earlier than when all of its associatedEGLImages
are destroyed byDestroyImageKHR
.- Parameters:
attrib_list
- a list of attribute-value pairs which is used to specify the dimensions, format, and usage of the underlying buffer structure. If it is non-NULL
, the last attribute specified in the list must beNONE
.
-
eglCreateNativeClientBufferANDROID
public static long eglCreateNativeClientBufferANDROID(@Nullable int[] attrib_list) Array version of:CreateNativeClientBufferANDROID
-