glGenVertexArrays = (PFNGLGENVERTEXARRAYSOESPROC) eglGetProcAddress("glGenVertexArraysOES");
glBindVertexArray = (PFNGLBINDVERTEXARRAYOESPROC) eglGetProcAddress("glBindVertexArrayOES");
glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSOESPROC) eglGetProcAddress("glDeleteVertexArraysOES");
if (!glGenVertexArrays )
LOGI ( "Can't get proc address: glGenVertexArraysOES" );
if (glBindVertexArray){
glBindVertexArray(0);
LOGI("Vertex array exists");
}
else
LOGI("Vertex array DON'T exists");
Work fine.
But don't work correctly this code =/
glGenVertexArrays(1, &verticesVAO);
glBindVertexArray(verticesVAO);
What must i write to use Vertex?