(EGLImage target is referenced object of native image “eglImageOES”
/*
Create an EGLImage from an existing image resource(buffer)
*/
EGLImageKHR eglCreateImageKHR(
EGLDisplay dpy, // EGL display
EGLContext ctx, // EGL client API context
EGLenum target, // Type of resource being used as EGLImage source
EGLClientBuffer buffer, // Name of a resource to be used as EGLImage source
const EGLint *attrib_list // List of attribute-value which is used to select EGLImage source
)
/*
Newly specified texture object will created that “EGLImage target” of the specified eglImageOES
*/
void EGLImageTargetTexture2DOES(
enum target, // Set to TEXTURE_EXTERNAL_OES,
// defines the currently bound external texture object to be a target sibling of image
eglImageOES image // Must be the handle of a valid EGLImage resource
);