2005-02-15 12:05:36 +01:00
|
|
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
2002-08-30 23:30:40 +02:00
|
|
|
|
2005-02-15 12:05:36 +01:00
|
|
|
package org.lwjgl.opengl;
|
2004-01-20 09:37:17 +01:00
|
|
|
|
2004-07-04 15:14:06 +02:00
|
|
|
import org.lwjgl.LWJGLException;
|
2004-07-29 13:20:43 +02:00
|
|
|
import org.lwjgl.BufferChecks;
|
2005-02-15 12:05:36 +01:00
|
|
|
import java.nio.*;
|
2004-01-20 09:37:17 +01:00
|
|
|
|
2004-02-19 00:54:46 +01:00
|
|
|
public final class EXTDrawRangeElements {
|
2005-02-15 12:05:36 +01:00
|
|
|
public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80e9;
|
|
|
|
|
public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80e8;
|
2004-01-20 09:37:17 +01:00
|
|
|
|
2004-07-31 11:34:09 +02:00
|
|
|
private EXTDrawRangeElements() {
|
|
|
|
|
}
|
|
|
|
|
|
2004-07-04 15:14:06 +02:00
|
|
|
static native void initNativeStubs() throws LWJGLException;
|
2004-07-03 23:12:33 +02:00
|
|
|
|
2005-02-16 13:58:40 +01:00
|
|
|
public static void glDrawRangeElementsEXT(int mode, int start, int end, ShortBuffer pIndices) {
|
2004-07-29 13:20:43 +02:00
|
|
|
GLBufferChecks.ensureElementVBOdisabled();
|
2005-02-15 12:05:36 +01:00
|
|
|
BufferChecks.checkDirect(pIndices);
|
2005-02-16 13:58:40 +01:00
|
|
|
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_SHORT, pIndices, pIndices.position() << 1);
|
2004-01-20 09:37:17 +01:00
|
|
|
}
|
2005-02-16 13:58:40 +01:00
|
|
|
public static void glDrawRangeElementsEXT(int mode, int start, int end, IntBuffer pIndices) {
|
2004-07-29 13:20:43 +02:00
|
|
|
GLBufferChecks.ensureElementVBOdisabled();
|
2004-07-26 15:36:04 +02:00
|
|
|
BufferChecks.checkDirect(pIndices);
|
2005-02-16 13:58:40 +01:00
|
|
|
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_INT, pIndices, pIndices.position() << 2);
|
2005-02-15 12:05:36 +01:00
|
|
|
}
|
|
|
|
|
public static void glDrawRangeElementsEXT(int mode, int start, int end, ByteBuffer pIndices) {
|
2004-07-29 13:20:43 +02:00
|
|
|
GLBufferChecks.ensureElementVBOdisabled();
|
2005-02-15 12:05:36 +01:00
|
|
|
BufferChecks.checkDirect(pIndices);
|
|
|
|
|
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_BYTE, pIndices, pIndices.position());
|
2004-01-20 09:37:17 +01:00
|
|
|
}
|
2005-02-15 12:05:36 +01:00
|
|
|
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) {
|
2004-07-29 13:20:43 +02:00
|
|
|
GLBufferChecks.ensureElementVBOenabled();
|
2005-02-15 12:05:36 +01:00
|
|
|
nglDrawRangeElementsEXTBO(mode, start, end, count, type, pIndices_buffer_offset);
|
2004-01-20 09:37:17 +01:00
|
|
|
}
|
2005-02-15 12:05:36 +01:00
|
|
|
private static native void nglDrawRangeElementsEXTBO(int mode, int start, int end, int count, int type, int pIndices_buffer_offset);
|
2003-08-17 18:38:57 +02:00
|
|
|
}
|