I followed the question here Quaternion math for rotation? to get an angle of rotation and the axis around which I need to rotate, My question is how do I pass the angle and axis as an argument to glrotate()?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the axis is defined by the variables x, y, z, and the rotation angle is in the variable angle, then it’s as simple as glRotatef(angle, x, y, z)