Re: error: cannot convert 'QVector<QVector3D>' to 'const GLvoid* {aka const void*}' i
I have defined vertices as
Code:
QVector<QVector3D> vertices
I get the above error when calling:
Code:
glBufferData(GL_ARRAY_BUFFER,
sizeof(vertices)+sizeof(colors),
vertices, GL_STATIC_DRAW );
I cannot cast vertices to GLvoid*. is there anyway to do that?
Besides, in
Code:
glVertexPointer(2, QVector3D, 0, 0);
QVector3D is also not recognized, having prototype:
Code:
GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
GLsizei stride, const GLvoid *ptr );
any ideas?
Added after 1 4 minutes:
OOoooooooppppssss, I totally forgot about