Sign in to follow this  
fllipperr

Opengl rotation problem

Recommended Posts

Make sure you load the identiy matrix, then translate for the object, then rotate for the object. It should look like this:

glLoadIdentity();
glTranslatef(x, y, 0.0f);
glRotatef(rotation, 0.0f, 0.0f, 1.0f);

Is this what you are having trouble with? It is hard to tell from your post. Try rephrasing the question and posting some code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this