I'm playing around with OpenGL ES 2.0 in Android, and looking through the docs for GLES20 I came across the following methods:
public static void glDrawElements(
int mode, int count, int type, Buffer indices)
public static void glDrawElements(
int mode, int count, int type, int offset)
public static void glVertexAttribPointer(
int indx, int size, int type, boolean normalized, int stride, Buffer ptr)
public static void glVertexAttribPointer(
int indx, int size, int type, boolean normalized, int stride, int offset)
The two methods that take Buffer
objects make sense to me, but the other two don't. Where do they get the indices/attibute-values (respectively), and what is offset
an offset into? (I assume these two questions have the same answer.)