c++ - I need help on how to rotate an image with OpenGL using SDL -


I am making a game and the character's hand will be constantly moving because it will follow the mouse cursor. I have never worked before OpenGL and I need to start some help. If someone gets a good website to learn well and has a special rotation, please let me know.

I have already visited Neha and went to that rotation tutorial but other basic tutorials, it still seems very confusing to me, so some explanations on the subject will also be appreciated.

In addition to this, I do not know that it will change things, but the player's "shoulder", "so I have to know how to rotate this point."

Use glTranslate to move the origin of your coordinate system and glRotate to rotate around this root. Anyway, You should get a book about the basics of computer graphics. If serious about, go.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -