Język

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

Definition

Allocates or replaces a bound buffer object's data store.

[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.

size
Int32

The non-negative data size in bytes.

data
Buffer

Input data with at least size bytes from its current position, or null to allocate storage with undefined contents.

usage
Int32

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