Jump to content
  • Advertisement
Sign in to follow this  
Anon Mike

OpenGL Simple newbie question

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

On a whim I gathered together various resources about OpenGL programming and started into it. Now I've got a simple app that lets me run around a flat plane along with a few other pc-controlled objects, kinda neat. Anyway, my question is - is there a way to set OpenGL to use radians instead of degrees? Having to convert back and forth is kind of annoying and error-prone. I can't really imagine why any floating-point and trig intensive environment would use anything other than radians...

Share this post


Link to post
Share on other sites
Advertisement
A quick google search didn't pull up anything but I don't use OpenGL and thus have no idea. If one does not exist however, you can easily write your own ToRadians() function in about 10 seconds :]

EDIT: You probably already know this but to convert from degrees to radians just multiply by 180/pi

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!