question: public static void ccDrawPoints ( GL10 gl , CGPoint points [ ] , int numberOfPoints ) { FloatBuffer vertices = getVertices ( 2 * numberOfPoints ) ; for ( int i = 0 ; i < numberOfPoints ; i ++ ) { vertices . put ( points [ i ] . x ) ; vertices . put ( points [ i ] . y ) ; } vertices . position ( 0 ) ; gl . glDisable ( GL_TEXTURE_2D ) ; gl . glDisableClientState ( GL_TEXTURE_COORD_ARRAY ) ; gl . glDisableClientState ( GL_COLOR_ARRAY ) ; gl . glVertexPointer ( 2 , GL_FLOAT , 0 , vertices ) ; gl . glDrawArrays ( GL_POINTS , 0 , numberOfPoints ) ; gl . glEnableClientState ( GL_COLOR_ARRAY ) ; gl . glEnableClientState ( GL_TEXTURE_COORD_ARRAY ) ; gl . glEnable ( GL_TEXTURE_2D ) ; }
target:  draws an array of points.