Jump to content
  • Advertisement
Sign in to follow this  
ViperG

OpenGL Ortho2d using glRotatef(zoom, 0,0,0)

This topic is 4450 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'm trying to figure out the math opengl is using when you do this: glRotatef(-50, 0 0 0); Draw a Quad 100x100; The quad is now smaller, but how much smaller? Can someone help me out here? aka what are the new quads dimensions in opengl.

Share this post


Link to post
Share on other sites
Advertisement
You're rotating about the zero vector which isn't well defined. Don't to that. The specification doesn't say what happens when you specify the zero vector as rotation axis, but it does mention that in the process of building the rotation matrix, the rotation axis is normalized which is not defined in your case.

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!