title: Cocos2d 1.0 to cocos2d 2.0 source port
body: <p>I have below function in cocos2d 1.0, it is not compiling in cocos2d 2.0. </p>
  
  <p>Anyone help me to get same for cocos2d 2.0.  </p>
  
  <pre><code>void ccFillPoly( CGPoint *poli, int points, BOOL closePolygon )
  {
      glDisable(GL_TEXTURE_2D);
      glDisableClientState(GL_TEXTURE_COORD_ARRAY);
      glDisableClientState(GL_COLOR_ARRAY);
  
      glVertexPointer(2, GL_FLOAT, 0, poli);
      if( closePolygon )
          glDrawArrays(GL_TRIANGLE_FAN, 0, points);
      else
          glDrawArrays(GL_LINE_STRIP, 0, points);
  
      // restore default state
      glEnableClientState(GL_COLOR_ARRAY);
      glEnableClientState(GL_TEXTURE_COORD_ARRAY);
      glEnable(GL_TEXTURE_2D);
  }
  </code></pre>