public static void ccDrawLine(GL10 gl,CGPoint origin,CGPoint destination){
  FloatBuffer vertices=getVertices(2 * 2);
  vertices.put(origin.x);
  vertices.put(origin.y);
  vertices.put(destination.x);
  vertices.put(destination.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_LINES,0,2);
  gl.glEnableClientState(GL_COLOR_ARRAY);
  gl.glEnableClientState(GL_TEXTURE_COORD_ARRAY);
  gl.glEnable(GL_TEXTURE_2D);
}

public static void ccDrawLine ( GL10 gl , CGPoint origin , CGPoint destination ) { FloatBuffer vertices = getVertices ( 2 * 2 ) ; vertices . put ( origin . x ) ; vertices . put ( origin . y ) ; vertices . put ( destination . x ) ; vertices . put ( destination . 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_LINES , 0 , 2 ) ; gl . glEnableClientState ( GL_COLOR_ARRAY ) ; gl . glEnableClientState ( GL_TEXTURE_COORD_ARRAY ) ; gl . glEnable ( GL_TEXTURE_2D ) ; }
draws a line given the origin and destination point
