Skip to content

Instantly share code, notes, and snippets.

@lilliemarck
Created June 15, 2013 12:45
Show Gist options
  • Save lilliemarck/5788010 to your computer and use it in GitHub Desktop.
Save lilliemarck/5788010 to your computer and use it in GitHub Desktop.
Android Interlaved Vertices
mFloatBuffer.position(0);
GLES11.glEnableClientState(GLES11.GL_VERTEX_ARRAY);
GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 16, mFloatBuffer);
mFloatBuffer.position(2);
GLES11.glEnableClientState(GLES11.GL_TEXTURE_COORD_ARRAY);
GLES11.glTexCoordPointer(2, GLES11.GL_FLOAT, 16, mFloatBuffer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment