lwjgl/src/java/org/lwjgl/opengl/EXTDrawRangeElements.java

40 lines
1.8 KiB
Java

/* MACHINE GENERATED FILE, DO NOT EDIT */
package org.lwjgl.opengl;
import org.lwjgl.LWJGLException;
import org.lwjgl.BufferChecks;
import java.nio.*;
public final class EXTDrawRangeElements {
public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80e9;
public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80e8;
private EXTDrawRangeElements() {
}
static native void initNativeStubs() throws LWJGLException;
public static void glDrawRangeElementsEXT(int mode, int start, int end, ShortBuffer pIndices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(pIndices);
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_SHORT, pIndices, pIndices.position() << 1);
}
public static void glDrawRangeElementsEXT(int mode, int start, int end, IntBuffer pIndices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(pIndices);
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_INT, pIndices, pIndices.position() << 2);
}
public static void glDrawRangeElementsEXT(int mode, int start, int end, ByteBuffer pIndices) {
GLBufferChecks.ensureElementVBOdisabled();
BufferChecks.checkDirect(pIndices);
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_BYTE, pIndices, pIndices.position());
}
private static native void nglDrawRangeElementsEXT(int mode, int start, int end, int count, int type, Buffer pIndices, int pIndices_position);
public static void glDrawRangeElementsEXT(int mode, int start, int end, int count, int type, int pIndices_buffer_offset) {
GLBufferChecks.ensureElementVBOenabled();
nglDrawRangeElementsEXTBO(mode, start, end, count, type, pIndices_buffer_offset);
}
private static native void nglDrawRangeElementsEXTBO(int mode, int start, int end, int count, int type, int pIndices_buffer_offset);
}