Sign in to follow this  

Using glLoadMatrix

This topic is 4100 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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).

Share this post


Link to post
Share on other sites

This topic is 4100 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this