GLES11.GlBufferData(Int32, Int32, Buffer, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.