List of usage examples for org.lwjgl.opengl GL11 glColorPointer
public static void glColorPointer(@NativeType("GLint") int size, @NativeType("GLenum") int type, @NativeType("GLsizei") int stride, @NativeType("void const *") FloatBuffer pointer)
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glColorPointer(int a, int b, int c, long d) { GL11.glColorPointer(a, b, c, d); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glColorPointer(int a, boolean b, int c, ByteBuffer d) { GL11.glColorPointer(a, b, c, d); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glColorPointer(int a, int b, int c, ByteBuffer d) { GL11.glColorPointer(a, b, c, d); }
From source file:view.renderer.GridRenderer.java
public void draw() { GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY); GL11.glEnableClientState(GL11.GL_COLOR_ARRAY); GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, vID); GL15.glBufferData(GL15.GL_ARRAY_BUFFER, vB, GL15.GL_STATIC_DRAW); GL11.glVertexPointer(2, GL11.GL_INT, 2 * 4, 0L); GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, cID); GL15.glBufferData(GL15.GL_ARRAY_BUFFER, cB, GL15.GL_STATIC_DRAW); GL11.glColorPointer(3, GL11.GL_FLOAT, 3 * 4, 0L); GL11.glDrawArrays(GL11.GL_QUADS, 0, (linesX + linesY) * 4); GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, 0); GL11.glDisableClientState(GL11.GL_COLOR_ARRAY); GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY); }