Using glLoadMatrix
I need to set the matrix to some specific values that only become known during runtime. So I can't have the matrix be a const! But the parameter expects a const!
glLoadMatrixf(const GLfloat *m)
A value can be explicitly converted from non-const to const, but a pointer to a non-const can't be converted to a ptr to const...
Edit: nevermind, I guess it can be!
glLoadMatrixf(const GLfloat *m)
Says it takes a pointer to a constant GLfloat, ie it will not change the value pointed to by m(but it can change the location of m or iterator accross it).
Says it takes a pointer to a constant GLfloat, ie it will not change the value pointed to by m(but it can change the location of m or iterator accross it).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement