Code example for IntBuffer

Methods: glVertexAttribPointerposition

	//    USAGE: call once before calling draw() multiple times for this buffer. 
	// A: [none] 
	// R: [none] 
	public void bind()  { 
		// bind vertex position pointer 
		vertices.position( 0 );                         // Set Vertex Buffer to Position
		GLES20.glVertexAttribPointer(mPositionHandle, positionCnt, 
				GLES20.GL_FLOAT, false, vertexSize, vertices);
		// bind texture position pointer 
		vertices.position(positionCnt);  // Set Vertex Buffer to Texture Coords (NOTE: position based on whether color is also specified)
		GLES20.glVertexAttribPointer(mTextureCoordinateHandle, TEXCOORD_CNT, 
				GLES20.GL_FLOAT, false, vertexSize, vertices);
		// bind MVP Matrix index position handle 
		vertices.position(positionCnt + TEXCOORD_CNT);
		GLES20.glVertexAttribPointer(mMVPIndexHandle, MVP_MATRIX_INDEX_CNT, 
				GLES20.GL_FLOAT, false, vertexSize, vertices);