I have defined vertices as
QVector<QVector3D> vertices
QVector<QVector3D> vertices
To copy to clipboard, switch view to plain text mode
I get the above error when calling:
glBufferData(GL_ARRAY_BUFFER,
sizeof(vertices)+sizeof(colors),
vertices, GL_STATIC_DRAW );
glBufferData(GL_ARRAY_BUFFER,
sizeof(vertices)+sizeof(colors),
vertices, GL_STATIC_DRAW );
To copy to clipboard, switch view to plain text mode
I cannot cast vertices to GLvoid*. is there anyway to do that?
Besides, in
glVertexPointer(2, QVector3D, 0, 0);
glVertexPointer(2, QVector3D, 0, 0);
To copy to clipboard, switch view to plain text mode
QVector3D is also not recognized, having prototype:
GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
GLsizei stride, const GLvoid *ptr );
GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
GLsizei stride, const GLvoid *ptr );
To copy to clipboard, switch view to plain text mode
any ideas?
Added after 1 4 minutes:
OOoooooooppppssss, I totally forgot about
.constData
Bookmarks