public class ANDROIDCreateNativeClientBuffer
extends java.lang.Object
This extension allows creating an EGLClientBuffer backed by an Android window buffer (struct ANativeWindowBuffer) which can be later
used to create an EGLImage.
| Modifier and Type | Field and Description |
|---|---|
static int |
EGL_NATIVE_BUFFER_USAGE_ANDROID
The usage bits of the buffer data.
|
static int |
EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID
Indicates that the created buffer must have a hardware-protected path to external display sink.
|
static int |
EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID
The buffer will be used to create a renderbuffer.
|
static int |
EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID
The buffer will be used to create a texture.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
eglCreateNativeClientBufferANDROID(int[] attrib_list)
Array version of:
CreateNativeClientBufferANDROID |
static long |
eglCreateNativeClientBufferANDROID(java.nio.IntBuffer attrib_list)
May be used to create an
EGLClientBuffer backed by an ANativeWindowBuffer struct. |
static long |
neglCreateNativeClientBufferANDROID(long attrib_list)
Unsafe version of:
CreateNativeClientBufferANDROID |
public static final int EGL_NATIVE_BUFFER_USAGE_ANDROID
public static final int EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID
public static final int EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID
NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID is set.public static final int EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID
NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID is set.public static long neglCreateNativeClientBufferANDROID(long attrib_list)
CreateNativeClientBufferANDROIDpublic static long eglCreateNativeClientBufferANDROID(@Nullable
java.nio.IntBuffer attrib_list)
EGLClientBuffer backed by an ANativeWindowBuffer struct. EGL implementations must guarantee that the lifetime
of the returned EGLClientBuffer is at least as long as the EGLImage(s) it is bound to; the EGLClientBuffer must be destroyed no
earlier than when all of its associated EGLImages are destroyed by DestroyImageKHR.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 be NONE.public static long eglCreateNativeClientBufferANDROID(@Nullable
int[] attrib_list)
CreateNativeClientBufferANDROIDCopyright LWJGL. All Rights Reserved. License terms.