Hi guys,
I'm trying to use glVertexPointer, but nothing is drawn.
I define
typedef struct vertex{
GLdouble x;
GLdouble y;
GLdouble z;
}vertex;
and an array of vertex: vertex *vertexes;
In the display function i write the following code:
glEnableClientState( GL_VERTEX_ARRAY );
glVertexPointer(3, GL_DOUBLE, sizeof(structure::vertex), content->vertexes);
glDrawArrays(GL_POINT, 0, content->nvertex);
glDisableClientState(GL_VERTEX_ARRAY);
but it doesn't work.
I try also: glVertexPointer(3, GL_DOUBLE, sizeof(structure::vertex), &(content->vertexes[0]));
but nothing is drawn.
Any ideas??
thank you
G.




