Język

GLES32.GlDrawRangeElementsBaseVertex Method

Definition

Unsafe legacy Buffer mapping with an incorrect JNI size test. Prefer the integer-offset GlDrawElementsInstancedBaseVertex overload with one instance for element-buffer drawing.

[Android.Runtime.Register("glDrawRangeElementsBaseVertex", "(IIIIILjava/nio/Buffer;I)V", "", ApiSince=24)]
public static void GlDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, Java.Nio.Buffer? indices, int basevertex);
[<Android.Runtime.Register("glDrawRangeElementsBaseVertex", "(IIIIILjava/nio/Buffer;I)V", "", ApiSince=24)>]
static member GlDrawRangeElementsBaseVertex : int * int * int * int * int * Java.Nio.Buffer * int -> unit

Parameters

mode
Int32

The primitive-mode token forwarded to GL when the JNI size test passes.

start
Int32

The unsigned lower bound for non-restart indices before the vertex bias; JNI casts this Int32 bit pattern to GLuint.

end
Int32

The unsigned upper bound for non-restart indices before the vertex bias, not below start; JNI casts this Int32 bit pattern to GLuint.

count
Int32

The nonnegative requested index count. JNI incorrectly compares remaining bytes with count minus basevertex, not the storage needed for count indices.

type
Int32

The GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT token forwarded to GL; the JNI capacity test does not account for the index width.

indices
Buffer

A non-null direct, native-order index buffer at its current position, with the full count indices available and GL_ELEMENT_ARRAY_BUFFER unbound. Do not rely on the incorrect JNI size test. Its byte threshold can reject otherwise valid index storage.

basevertex
Int32

The signed vertex-index bias passed to GL. Choose it so JNI's unchecked signed 32-bit count minus basevertex calculation does not overflow.

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