List of usage examples for org.lwjgl.opengl GL12 glDrawRangeElements
public static void glDrawRangeElements(@NativeType("GLenum") int mode, @NativeType("GLuint") int start, @NativeType("GLuint") int end, @NativeType("void const *") IntBuffer indices)
From source file:com.badlogic.gdx.backends.jglfw.JglfwGL30.java
License:Apache License
@Override public void glDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices) { if (indices instanceof ByteBuffer) GL12.glDrawRangeElements(mode, start, end, (ByteBuffer) indices); else if (indices instanceof ShortBuffer) GL12.glDrawRangeElements(mode, start, end, (ShortBuffer) indices); else if (indices instanceof IntBuffer) GL12.glDrawRangeElements(mode, start, end, (IntBuffer) indices); else//from w w w .ja v a 2s . co m throw new GdxRuntimeException("indices must be byte, short or int buffer"); }
From source file:io.root.gfx.glutils.GL.java
License:Apache License
public static void glDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices) { if (indices instanceof ByteBuffer) GL12.glDrawRangeElements(mode, start, end, (ByteBuffer) indices); else if (indices instanceof ShortBuffer) GL12.glDrawRangeElements(mode, start, end, (ShortBuffer) indices); else if (indices instanceof IntBuffer) GL12.glDrawRangeElements(mode, start, end, (IntBuffer) indices); else/* w w w . j av a2s . c o m*/ throw new RootException("indices must be byte, short or int buffer"); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glDrawRangeElements(int a, int b, int c, ByteBuffer d) { GL12.glDrawRangeElements(a, b, c, d); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glDrawRangeElements(int a, int b, int c, IntBuffer d) { GL12.glDrawRangeElements(a, b, c, d); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glDrawRangeElements(int a, int b, int c, ShortBuffer d) { GL12.glDrawRangeElements(a, b, c, d); }