Język

GLES20.GlTexSubImage2D Method

Definition

Replaces a rectangular region of an existing texture image with pixel data.

[Android.Runtime.Register("glTexSubImage2D", "(IIIIIIIILjava/nio/Buffer;)V", "")]
public static void GlTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Java.Nio.Buffer? pixels);
[<Android.Runtime.Register("glTexSubImage2D", "(IIIIIIIILjava/nio/Buffer;)V", "")>]
static member GlTexSubImage2D : int * int * int * int * int * int * int * int * Java.Nio.Buffer -> unit

Parameters

target
Int32

GL_TEXTURE_2D or one of the six GL_TEXTURE_CUBE_MAP face tokens.

level
Int32

The nonnegative mipmap level; zero is the base image.

xoffset
Int32

The nonnegative horizontal destination texel offset.

yoffset
Int32

The nonnegative vertical destination texel offset.

width
Int32

The nonnegative update width in texels; the destination range must fit the image.

height
Int32

The nonnegative update height in texels; the destination range must fit the image.

format
Int32

The supported input pixel format compatible with the existing image.

type
Int32

The supported component or packed-pixel type compatible with format.

pixels
Buffer

For a nonempty update, a non-null direct or accessible array-backed input buffer at its current position. Supply the complete update including GL_UNPACK_ALIGNMENT row padding. JNI also accepts null, but supplies no pixel data and checks no capacity. In contexts supporting pixel-unpack buffers, leave that binding zero for this client-memory overload. Supply enough data for all active pixel-store settings.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to