public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, int ptr) { GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); } }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, int ptr) { GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); } }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, int ptr) { GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); } }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, int ptr) { GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); } }
@Override public void glVertexAttribPointer(final int index, final int size, final int type, final boolean normalized, final int stride, final long pointer) { GL20.glVertexAttribPointer(index, size, type, normalized, stride, pointer); }
public void glVertexAttribPointer(int param1, int param2, int param3, boolean param4, int param5, long param6) { GL20.glVertexAttribPointer(param1, param2, param3, param4, param5, param6); }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, Buffer buffer) { if (buffer instanceof ByteBuffer) { if (type == GL_BYTE) GL20.glVertexAttribPointer(indx, size, false, normalized, stride, (ByteBuffer)buffer); else if (type == GL_UNSIGNED_BYTE) GL20.glVertexAttribPointer(indx, size, true, normalized, stride, (ByteBuffer)buffer); else if (type == GL_SHORT) GL20.glVertexAttribPointer(indx, size, false, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_UNSIGNED_SHORT) GL20.glVertexAttribPointer(indx, size, true, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, normalized, stride, ((ByteBuffer)buffer).asFloatBuffer()); else throw new GdxRuntimeException( "Can't use " + buffer.getClass().getName() + " with type " + type + " with this method. Use ByteBuffer and one of GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT or GL_FLOAT for type. Blame LWJGL"); } else if (buffer instanceof FloatBuffer) { if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, normalized, stride, (FloatBuffer)buffer); else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with type " + type + " with this method."); } else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with this method. Use ByteBuffer instead. Blame LWJGL"); }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, Buffer buffer) { if (buffer instanceof ByteBuffer) { if (type == GL_BYTE) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, (ByteBuffer)buffer); else if (type == GL_UNSIGNED_BYTE) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, (ByteBuffer)buffer); else if (type == GL_SHORT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_UNSIGNED_SHORT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ((ByteBuffer)buffer).asFloatBuffer()); else throw new GdxRuntimeException( "Can't use " + buffer.getClass().getName() + " with type " + type + " with this method. Use ByteBuffer and one of GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT or GL_FLOAT for type. Blame LWJGL"); } else if (buffer instanceof FloatBuffer) { if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, (FloatBuffer)buffer); else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with type " + type + " with this method."); } else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with this method. Use ByteBuffer instead. Blame LWJGL"); }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, Buffer buffer) { if (buffer instanceof ByteBuffer) { if (type == GL_BYTE) GL20.glVertexAttribPointer(indx, size, false, normalized, stride, (ByteBuffer)buffer); else if (type == GL_UNSIGNED_BYTE) GL20.glVertexAttribPointer(indx, size, true, normalized, stride, (ByteBuffer)buffer); else if (type == GL_SHORT) GL20.glVertexAttribPointer(indx, size, false, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_UNSIGNED_SHORT) GL20.glVertexAttribPointer(indx, size, true, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, normalized, stride, ((ByteBuffer)buffer).asFloatBuffer()); else throw new GdxRuntimeException( "Can't use " + buffer.getClass().getName() + " with type " + type + " with this method. Use ByteBuffer and one of GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT or GL_FLOAT for type. Blame LWJGL"); } else if (buffer instanceof FloatBuffer) { if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, normalized, stride, (FloatBuffer)buffer); else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with type " + type + " with this method."); } else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with this method. Use ByteBuffer instead. Blame LWJGL"); }
public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, Buffer buffer) { if (buffer instanceof ByteBuffer) { if (type == GL_BYTE) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, (ByteBuffer)buffer); else if (type == GL_UNSIGNED_BYTE) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, (ByteBuffer)buffer); else if (type == GL_SHORT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_UNSIGNED_SHORT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ((ByteBuffer)buffer).asShortBuffer()); else if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ((ByteBuffer)buffer).asFloatBuffer()); else throw new GdxRuntimeException( "Can't use " + buffer.getClass().getName() + " with type " + type + " with this method. Use ByteBuffer and one of GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT or GL_FLOAT for type. Blame LWJGL"); } else if (buffer instanceof FloatBuffer) { if (type == GL_FLOAT) GL20.glVertexAttribPointer(indx, size, type, normalized, stride, (FloatBuffer)buffer); else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with type " + type + " with this method."); } else throw new GdxRuntimeException("Can't use " + buffer.getClass().getName() + " with this method. Use ByteBuffer instead. Blame LWJGL"); }
@Override public void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset) { GL20.glVertexAttribPointer(index, size, type, normalized, stride, offset); } }
@Override public void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset) { GL20.glVertexAttribPointer(index, size, type, normalized, stride, offset); } }
@Override public void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr) { GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); }
@Override public void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr) { GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); }
@Override public void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset) { GL20.glVertexAttribPointer(index, size, type, normalized, stride, offset); } }
@Override protected void specifyFormat(EGeometryFormatType format) { GL20.glEnableVertexAttribArray(0); if (format.getTexCoordPos() == -1) { GL20.glVertexAttribPointer(0, 2, GL11.GL_FLOAT, false, 0, 0); } else { GL20.glEnableVertexAttribArray(1); int stride = format.getBytesPerVertexSize(); GL20.glVertexAttribPointer(0, 2, GL11.GL_FLOAT, false, stride, 0); GL20.glVertexAttribPointer(1, 2, GL11.GL_FLOAT, false, stride, format.getTexCoordPos()); } }
public void addData(Vec2f[] points) { size = points.length; glBindVertexArray(vaoId); glBindBuffer(GL_ARRAY_BUFFER, vbo); glBufferData(GL_ARRAY_BUFFER, BufferUtil.createFlippedBuffer(points), GL_STATIC_DRAW); glVertexAttribPointer(0, 2, GL_FLOAT, false, Float.BYTES*2, 0); glBindVertexArray(0); }
public void addData(Vec3f[] points) { size = points.length; glBindVertexArray(vaoId); glBindBuffer(GL_ARRAY_BUFFER, vbo); glBufferData(GL_ARRAY_BUFFER, BufferUtil.createFlippedBuffer(points), GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, false, Float.BYTES*3, 0); glBindVertexArray(0); }
public void addData(Vec2f[] vertices, int patchsize) { size = vertices.length; glBindVertexArray(vaoId); glBindBuffer(GL_ARRAY_BUFFER, vbo); glBufferData(GL_ARRAY_BUFFER, BufferUtil.createFlippedBuffer(vertices), GL_STATIC_DRAW); glVertexAttribPointer(0, 2, GL_FLOAT, false, Float.BYTES*2, 0); glPatchParameteri(GL_PATCH_VERTICES, patchsize); glBindVertexArray(0); }
public void addData(Vec3f[] vertices, int patchsize) { size = vertices.length; glBindVertexArray(vaoId); glBindBuffer(GL_ARRAY_BUFFER, vbo); glBufferData(GL_ARRAY_BUFFER, BufferUtil.createFlippedBuffer(vertices), GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, false, Float.BYTES*3, 0); glPatchParameteri(GL_PATCH_VERTICES, patchsize); glBindVertexArray(0); }