public void drawAtPoint(GL10 gl,CGPoint point){
  gl.glEnable(GL_TEXTURE_2D);
  loadTexture(gl);
  float width=(float)mWidth * _maxS;
  float height=(float)mHeight * _maxT;
  float vertices[]={point.x,point.y,0.0f,width + point.x,point.y,0.0f,point.x,height + point.y,0.0f,width + point.x,height + point.y,0.0f};
  mVertices.put(vertices);
  mVertices.position(0);
  float coordinates[]={0.0f,_maxT,_maxS,_maxT,0.0f,0.0f,_maxS,0.0f};
  mCoordinates.put(coordinates);
  mCoordinates.position(0);
  gl.glEnableClientState(GL_VERTEX_ARRAY);
  gl.glEnableClientState(GL_TEXTURE_COORD_ARRAY);
  gl.glBindTexture(GL_TEXTURE_2D,_name);
  gl.glTexParameterx(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
  gl.glTexParameterx(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
  gl.glVertexPointer(3,GL_FLOAT,0,mVertices);
  gl.glTexCoordPointer(2,GL_FLOAT,0,mCoordinates);
  gl.glDrawArrays(GL_TRIANGLE_STRIP,0,4);
  gl.glDisableClientState(GL_VERTEX_ARRAY);
  gl.glDisableClientState(GL_TEXTURE_COORD_ARRAY);
  gl.glDisable(GL_TEXTURE_2D);
}

public void drawAtPoint ( GL10 gl , CGPoint point ) { gl . glEnable ( GL_TEXTURE_2D ) ; loadTexture ( gl ) ; float width = ( float ) mWidth * _maxS ; float height = ( float ) mHeight * _maxT ; float vertices [ ] = { point . x , point . y , 0.0f , width + point . x , point . y , 0.0f , point . x , height + point . y , 0.0f , width + point . x , height + point . y , 0.0f } ; mVertices . put ( vertices ) ; mVertices . position ( 0 ) ; float coordinates [ ] = { 0.0f , _maxT , _maxS , _maxT , 0.0f , 0.0f , _maxS , 0.0f } ; mCoordinates . put ( coordinates ) ; mCoordinates . position ( 0 ) ; gl . glEnableClientState ( GL_VERTEX_ARRAY ) ; gl . glEnableClientState ( GL_TEXTURE_COORD_ARRAY ) ; gl . glBindTexture ( GL_TEXTURE_2D , _name ) ; gl . glTexParameterx ( GL_TEXTURE_2D , GL_TEXTURE_WRAP_S , GL_REPEAT ) ; gl . glTexParameterx ( GL_TEXTURE_2D , GL_TEXTURE_WRAP_T , GL_REPEAT ) ; gl . glVertexPointer ( 3 , GL_FLOAT , 0 , mVertices ) ; gl . glTexCoordPointer ( 2 , GL_FLOAT , 0 , mCoordinates ) ; gl . glDrawArrays ( GL_TRIANGLE_STRIP , 0 , 4 ) ; gl . glDisableClientState ( GL_VERTEX_ARRAY ) ; gl . glDisableClientState ( GL_TEXTURE_COORD_ARRAY ) ; gl . glDisable ( GL_TEXTURE_2D ) ; }
draws a texture at a given point
