Język

GLES20.GlBufferData(Int32, Int32, Buffer, Int32) Method

Definition

Replaces the bound buffer's data store, optionally copying initial bytes.

[Android.Runtime.Register("glBufferData", "(IILjava/nio/Buffer;I)V", "")]
public static void GlBufferData(int target, int size, Java.Nio.Buffer? data, int usage);
[<Android.Runtime.Register("glBufferData", "(IILjava/nio/Buffer;I)V", "")>]
static member GlBufferData : int * int * Java.Nio.Buffer * int -> unit

Parameters

target
Int32

GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER, with a nonzero buffer bound.

size
Int32

The nonnegative new data-store size in bytes.

data
Buffer

A direct or accessible array-backed input buffer at its current position with size bytes available, or null to allocate undefined contents. JNI checks remaining bytes for non-null input.

usage
Int32

GL_STREAM_DRAW, GL_STATIC_DRAW, or GL_DYNAMIC_DRAW; this is a usage hint, not an access restriction.

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