Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
glVertexAttribPointer error
#4
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
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 



Reply


Messages In This Thread
glVertexAttribPointer error - by pahendriks - 03-16-2018, 07:16 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:29 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 07:44 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:46 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 07:51 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:45 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 07:57 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 08:14 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 08:22 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 08:32 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 08:41 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 09:08 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 09:18 PM
RE: glVertexAttribPointer error - by pahendriks - 03-16-2018, 09:28 PM
RE: glVertexAttribPointer error - by Brian Beuken - 03-16-2018, 09:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)