Using glLoadMatrix

Started by
0 comments, last by GameDev.net 17 years, 7 months ago
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!
Advertisement
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).

This topic is closed to new replies.

Advertisement