Język

GLES20.GlVertexAttribPointer Method

Definition

Overloads

Name Description
GlVertexAttribPointer(Int32, Int32, Int32, Boolean, Int32, Buffer)

Defines a persistent generic attribute array using client memory.

GlVertexAttribPointer(Int32, Int32, Int32, Boolean, Int32, Int32)

Defines a generic attribute array using the currently bound array buffer.

GlVertexAttribPointer(Int32, Int32, Int32, Boolean, Int32, Buffer)

Defines a persistent generic attribute array using client memory.

[Android.Runtime.Register("glVertexAttribPointer", "(IIIZILjava/nio/Buffer;)V", "")]
public static void GlVertexAttribPointer(int indx, int size, int type, bool normalized, int stride, Java.Nio.Buffer? ptr);
[<Android.Runtime.Register("glVertexAttribPointer", "(IIIZILjava/nio/Buffer;)V", "")>]
static member GlVertexAttribPointer : int * int * int * bool * int * Java.Nio.Buffer -> unit

Parameters

indx
Int32

The zero-based attribute index, less than GL_MAX_VERTEX_ATTRIBS.

size
Int32

One, two, three, or four components per attribute element.

type
Int32

The supported component-type token.

normalized
Boolean

Whether integer-format components are normalized to their signed or unsigned unit range instead of directly converted.

stride
Int32

The nonnegative byte spacing between elements; zero means tightly packed data.

ptr
Buffer

A non-null direct, native-order buffer at its current position, with GL_ARRAY_BUFFER unbound. Java retains no buffer reference and the native Bounds stub ignores its remaining count. Keep the buffer alive and provide enough storage for every element used by later draws.

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

GlVertexAttribPointer(Int32, Int32, Int32, Boolean, Int32, Int32)

Defines a generic attribute array using the currently bound array buffer.

[Android.Runtime.Register("glVertexAttribPointer", "(IIIZII)V", "")]
public static void GlVertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset);
[<Android.Runtime.Register("glVertexAttribPointer", "(IIIZII)V", "")>]
static member GlVertexAttribPointer : int * int * int * bool * int * int -> unit

Parameters

indx
Int32

The zero-based attribute index, less than GL_MAX_VERTEX_ATTRIBS.

size
Int32

One, two, three, or four components per attribute element.

type
Int32

The supported component-type token.

normalized
Boolean

Whether integer-format components are normalized to their signed or unsigned unit range instead of directly converted.

stride
Int32

The nonnegative byte spacing between elements; zero means tightly packed data.

offset
Int32

The nonnegative byte offset in the bound GL_ARRAY_BUFFER, aligned for type. Keep enough buffer storage for every element accessed by later draws.

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