PDA

View Full Version : [SOLVED]glMultiDrawElements not declared on linux



manolopm
08-14-2010, 04:10 AM
Hi:

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 :



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


glPolygonMode(GL_FRONT_AND_BACK,GL_LINE);

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?

manolopm
08-14-2010, 04:16 AM
Solved. I forgot to include glew.h

Dark Photon
08-14-2010, 08:56 AM
This also works:

#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>