Rotate an image and get back to its original position - opengles glkit
Posted
by
Manoj
on Game Development
See other posts from Game Development
or by Manoj
Published on 2013-03-14T16:09:10Z
Indexed on
2013/07/01
16:31 UTC
Read the original article
Hit count: 225
I need to rotate an image in opengles GLkit and get it back to its original position in GLkit.
rotation += 5;
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(5), 1, 0, 0);
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(rotation), 1,0,0);
I need to move it in x axis for certain amount and getting back to its original position from where it started. How should i do it?
© Game Development or respective owner