Jump to content
  • Advertisement
Sign in to follow this  
VariableBob

VS2005 and Opengl : glLoadMatrix command

This topic is 3843 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
Advertisement
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
Quote:
Original post by jouley
[The right function: glLoadMatrixf (or d, for double: info.) The same goes for glLoadTransposeMatrix*. [smile]

Excuse me while I go kick myself.

Back again, thanks for the help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!