(EGL 1.1 only) Defines a two-dimensional texture image.
The texture image consists of the image data in
buffer
for the specified surface
, and
need not be copied.
The texture target, the texture format and the size of the
texture components are derived from attributes of the specified
surface, which must be a pbuffer supporting one of the
EGL_BIND_TO_TEXTURE_RGB
or
EGL_BIND_TO_TEXTURE_RGBA
attributes.
The pbuffer attribute EGL_TEXTURE_FORMAT
determines the base internal format of the texture.
The texture target is derived from the
EGL_TEXTURE_TARGET
attribute of
surface
. If the attribute value is
EGL_TEXTURE_2D
, then buffer defines a texture for
the two-dimensional texture object which is bound to the current
context (hereafter referred to as the current texture object).
If display
and surface
are the
display and surface for the calling thread