[SOLVED]glMultiDrawElements not declared on linux


I’m trying to use glMultiDrawElements on C++ program in linux. I have a nvidia card (8800 GTS) with lastest driver (256-44).

Every time I tried to use it I’ve got an “not declared” message but If I use glDrawElements I got no problem (so I suppose that the includes and the libraries are ok).

This is my call :

glVertexPointer(3, GL_FLOAT, 0, cObjLoader.mvvVertex);


int count[] = {4,4};
// glDrawElements(GL_POLYGON,cObjLoader.mvFaces[1].size(), GL_UNSIGNED_INT, &cObjLoader.mvFaces[1][0]);
glMultiDrawElements(GL_POLYGON, count, GL_UNSIGNED_INT, &cObjLoader.mvFaces, 2);

Any Idea?

Solved. I forgot to include glew.h

This also works:

#include <GL/gl.h>