Język

GLES30.GlMapBufferRange(Int32, Int32, Int32, Int32) Method

Definition

The java.nio.Buffer instance returned by this method is guaranteed to be an instance of java.nio.ByteBuffer.

[Android.Runtime.Register("glMapBufferRange", "(IIII)Ljava/nio/Buffer;", "")]
public static Java.Nio.Buffer? GlMapBufferRange(int target, int offset, int length, int access);
[<Android.Runtime.Register("glMapBufferRange", "(IIII)Ljava/nio/Buffer;", "")>]
static member GlMapBufferRange : int * int * int * int -> Java.Nio.Buffer

Parameters

target
Int32

The binding target of the buffer object to map.

offset
Int32

The non-negative starting byte offset within the buffer's data store.

length
Int32

The positive number of bytes to map.

access
Int32

Compatible GL_MAP_* flags specifying read and/or write access; use the mapped memory only as permitted by these flags.

Returns

A direct byte buffer covering the mapped range, or null if native mapping fails. Its storage becomes invalid when the buffer is unmapped, deleted, or reallocated. Select native byte order before creating multibyte views.

Attributes

Remarks

The java.nio.Buffer instance returned by this method is guaranteed to be an instance of java.nio.ByteBuffer.

Java documentation for android.opengl.GLES30.glMapBufferRange(int, int, int, int).

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