03-16-2018, 07:45 PM
BTW this is a good example of an error message that actually makes sense, a lot of C++ errors are very confusing but this one
Error cannot convert 'GLfloat {aka float}' to 'const GLvoid* {aka const void*}' for argument '6' to 'void glVertexAttribPointer(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid*)' GameProject1
Tells you a lot, the 6'th argument is expecting a GLvoid* (a pointer to an address) but it has a GLfloat. That should give you a clue where the error is.
Nearly all errors are due to typo's so its important to get used to that annoying fact of life, that we will make our own errors most of the time, and can't always see them
Error cannot convert 'GLfloat {aka float}' to 'const GLvoid* {aka const void*}' for argument '6' to 'void glVertexAttribPointer(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid*)' GameProject1
Tells you a lot, the 6'th argument is expecting a GLvoid* (a pointer to an address) but it has a GLfloat. That should give you a clue where the error is.
Nearly all errors are due to typo's so its important to get used to that annoying fact of life, that we will make our own errors most of the time, and can't always see them
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's