I’m confused with using the glRotatef function of OpenGL.
When I’m calling for this: gl.glRotatef(90f, 1.0f, 0.0f, 0.0f); it rotates in Y direction of the object, like it’s inverted?
Any explanation for this?
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.
glRotatefrequires you to specify the normal to the plane you want it to rotate in. You’ve specified a normal ofx=1, y=0, z=0, which specifies that you want the rotation to occur in theyzplane.