Top Description Fields Constructors Methods
org.lwjgl.egl

public Class ANDROIDCreateNativeClientBuffer

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

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 TypeField and Description
public static final int
EGL_NATIVE_BUFFER_USAGE_ANDROID

The usage bits of the buffer data.

public static final int
EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID

Indicates that the created buffer must have a hardware-protected path to external display sink.

public static final int
EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID

The buffer will be used to create a renderbuffer.

public static final int
EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID

The buffer will be used to create a texture.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
eglCreateNativeClientBufferANDROID(IntBuffer
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.
attrib_list
)

May be used to create an EGLClientBuffer backed by an ANativeWindowBuffer struct.

public static long
public static long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_NATIVE_BUFFER_USAGE_ANDROIDback to summary
public static final int EGL_NATIVE_BUFFER_USAGE_ANDROID

The usage bits of the buffer data.

EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROIDback to summary
public static final int EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID

Indicates 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.

EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROIDback to summary
public static final int EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID

The buffer will be used to create a renderbuffer. This flag must not be set if NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID is set.

EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROIDback to summary
public static final int EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID

The buffer will be used to create a texture. This flag must not be set if NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID is set.

Constructor Detail

ANDROIDCreateNativeClientBufferback to summary
protected ANDROIDCreateNativeClientBuffer()

Method Detail

eglCreateNativeClientBufferANDROIDback to summary
public static long eglCreateNativeClientBufferANDROID(IntBuffer attrib_list)

May be used to create an 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.

Parameters
attrib_list:IntBuffer

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.

Annotations
@NativeType:EGLClientBuffer
eglCreateNativeClientBufferANDROIDback to summary
public static long eglCreateNativeClientBufferANDROID(int[] attrib_list)

Array version of: CreateNativeClientBufferANDROID

Annotations
@NativeType:EGLClientBuffer
neglCreateNativeClientBufferANDROIDback to summary
public static long neglCreateNativeClientBufferANDROID(long attrib_list)

Unsafe version of: CreateNativeClientBufferANDROID