title: how can I use 'glGenVertexArrays' using android-ndk
body: <p>i'm trying to use the VertexArray with Android NDK for a project that already compiles ok and uses other Open GL ES calls ok.
  For the purposes of this question let's talk about the call 'glGenVertexArrays' alone.</p>
  
  <p>I found the following definition in gl2ext.h:</p>
  
  <pre><code>GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
  </code></pre>
  
  <p>it is defined behind GL_GLEXT_PROTOTYPES definition. So I defined it and used it. It compiles fine but i'm getting link errors: undefined reference, so it seems it is missing from the lib file...</p>
  
  <p>So, then I tried using the typedef below in gl2ext.h:</p>
  
  <pre><code>typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
  </code></pre>
  
  <p>like this:</p>
  
  <pre><code>PFNGLGENVERTEXARRAYSOESPROC glGenVertexArrays;
  glGenVertexArrays = (PFNGLGENVERTEXARRAYSOESPROC) eglGetProcAddress("glGenVertexArraysOES");
  </code></pre>
  
  <p>and ... nothing, returns NULL.</p>
  
  <p>I also tries "glGenVertexArrays" ... nothing, still returns NULL</p>
  
  <p>any ideas would be appreciated. Thank you.</p>