Sign in to follow this  

VS2005 and Opengl : glLoadMatrix command

This topic is 3591 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

When I try to use glLoadMatrix or glLoadTransposeMatrix, I get: error C3861: 'glLoadMatrix': identifier not found I use: #include <gl/gl.h> #include <gl/glu.h> #include <gl/glext.h> glext.h I got from the www.opengl.org site. (Specifically, http://www.opengl.org/registry/api/glext.h) Two questions: 1) What do I need to include to have VS2005 recognise the glLoadMatrix/glLoadTransposeMatrix commands? 2) Is there a different way to apply a matrix transformation? (Some other command?) I found those after a quick search, maybe something else would be better? Thanks for any help that can be provided.

Share this post


Link to post
Share on other sites
Quote:
Original post by VariableBob
When I try to use glLoadMatrix or glLoadTransposeMatrix, I get:
error C3861: 'glLoadMatrix': identifier not found

Two questions:
1) What do I need to include to have VS2005 recognise the glLoadMatrix/glLoadTransposeMatrix commands?
The right function: glLoadMatrixf (or d, for double: info.) The same goes for glLoadTransposeMatrix*. [smile]
Quote:
2) Is there a different way to apply a matrix transformation? (Some other command?) I found those after a quick search, maybe something else would be better?

There's also glMultMatrixf to multiply the current matrix by a given matrix. Alternatively, you could start with the identity matrix (glLoadIdentity) and build your transformation with glTranslate*, glRotate*, and glScale*, etc.

Share this post


Link to post
Share on other sites

This topic is 3591 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