C language function:glRotatef sample codes

Search sample code in the internet.It is the result.


TITLE : Android example - CubeRenderer.java - android, cube, cuberenderer, eglconfig
gl.glRotatef(mAngle, 0, 1, 0);.......
http://alvinalexander.com/java/jwarehouse/android-examples/platforms/android-6/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java.shtml


TITLE : Android example - CubeRenderer.java - android, cube, cuberenderer, eglconfig
gl.glRotatef(mAngle*0.25f, 1, 0, 0);.......
http://alvinalexander.com/java/jwarehouse/android-examples/platforms/android-6/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java.shtml
TITLE : Android example - CubeRenderer.java - android, cube, cuberenderer, eglconfig
gl.glRotatef(mAngle*2.0f, 0, 1, 1);.......
http://alvinalexander.com/java/jwarehouse/android-examples/platforms/android-6/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java.shtml
TITLE : samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/MyGLRenderer.java - platform/development - Git at Google
gl.glRotatef(mAngle, 0.0f, 0.0f, 1.0f);.......
http://android.googlesource.com/platform/development/+/master/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/MyGLRenderer.java
TITLE : OpenGL interoperability - OpenCV Q&A Forum
glRotatef( 55, 1, 0, 0 );.......
http://answers.opencv.org/question/9827/opengl-interoperability/
TITLE : OpenGL interoperability - OpenCV Q&A Forum
glRotatef( 45, 0, 1, 0 );.......
http://answers.opencv.org/question/9827/opengl-interoperability/
TITLE : OpenGL interoperability - OpenCV Q&A Forum
glRotatef( 0, 0, 0, 1 );.......
http://answers.opencv.org/question/9827/opengl-interoperability/
TITLE : OpenGL interoperability - OpenCV Q&A Forum
glRotatef( 55, 1, 0, 0 );.......
http://answers.opencv.org/question/9827/opengl-interoperability/
TITLE : OpenGL interoperability - OpenCV Q&A Forum
glRotatef( 45, 0, 1, 0 );.......
http://answers.opencv.org/question/9827/opengl-interoperability/
TITLE : OpenGL interoperability - OpenCV Q&A Forum
glRotatef( 0, 0, 0, 1 );.......
http://answers.opencv.org/question/9827/opengl-interoperability/
TITLE : Jump start OpenGL with GLFW | barkingbogart
glRotatef(rtri,0.0f,1.0f,0.0f); // Rotate The Triangle On The Y axis.......
http://barkingbogart.wordpress.com/2012/02/22/jump-start-opengl-with-glfw/
TITLE : Jump start OpenGL with GLFW | barkingbogart
glRotatef(rquad,1.0f,0.0f,0.0f); // Rotate The Quad On The X axis.......
http://barkingbogart.wordpress.com/2012/02/22/jump-start-opengl-with-glfw/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
public abstract void glRotatef(float angle, float x, float y, float z).......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
If you like to restore a rotation you negate the angle or all the axis like this: glRotatef(angle, x, y, z) is restored with glRotatef(angle, -x, -y, -z) or glRotatef(-angle, x, y, z)........
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 1.0f, 0.0f, 0.0f); gl.glRotatef(90f, 0.0f, 1.0f, 0.0f); gl.glRotatef(90f, 0.0f, 0.0f, 1.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 1.0f, 0.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, 1.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, 0.0f, 1.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, -1.0f, 0.0f, 0.0f); gl.glRotatef(90f, 0.0f, -1.0f, 0.0f); gl.glRotatef(90f, 0.0f, 0.0f, -1.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, -1.0f, 0.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, -1.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, 0.0f, -1.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, 0.0f, -1.0f); gl.glRotatef(90f, 0.0f, -1.0f, 0.0f); gl.glRotatef(90f, -1.0f, 0.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, 0.0f, -1.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, -1.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, -1.0f, 0.0f, 0.0f);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(angle, 0, 0, 1);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(-angle, 0, 0, 1);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(angle*10, 0, 0, 1);.......
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
suburban, great that you noticed that. The x, y and z values is the definition of what vector to rotate around. If you for example try to rotate the big square with gl.glRotatef(angle, 1, 1, 0) instead you get a diagonal flipping rotation. My head was in another 3D system :). I have updated this tutorial........
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
But for the rotation part, I think you made an error in your explanation. glRotatef(angle, x, y, z) cannot be restored with glRotatef(angle, -x, -y, -z), it should be glRotatef(-angle, -x, -y, -z), since glRotatef(angle, x, y, z) is the same as glRotatef(angle, -x, -y, -z)........
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : OpenGL ES Tutorial for Android Part III Transformations - Jayway
gl.glRotatef(90f, 0.0f, 0.0f, 1.0f); // OpenGL docs........
http://blog.jayway.com/2010/01/01/opengl-es-tutorial-for-android-part-iii-transformations/
TITLE : Skeletal Tracking 101: Getting Started with the Bone API
glRotatef(90, -1, 0, 0);.......
http://blog.leapmotion.com/skeletal-tracking-101-getting-started-with-the-bone-api-and-rigged-hands/
TITLE : Loading a PNG as texture in OpenGL using libPNG | Morten Nobel's Blog
glRotatef(rotateX, 0,1,0);.......
http://blog.nobel-joergensen.com/2010/11/07/loading-a-png-as-texture-in-opengl-using-libpng/
TITLE : Loading a PNG as texture in OpenGL using libPNG | Morten Nobel's Blog
glRotatef(rotateY, 1,0,0);.......
http://blog.nobel-joergensen.com/2010/11/07/loading-a-png-as-texture-in-opengl-using-libpng/
TITLE : Loading a PNG as texture in OpenGL using libPNG | Morten Nobel's Blog
glRotatef(rotateX, 0,1,0);.......
http://blog.nobel-joergensen.com/2010/11/07/loading-a-png-as-texture-in-opengl-using-libpng/
TITLE : Loading a PNG as texture in OpenGL using libPNG | Morten Nobel's Blog
glRotatef(rotateY, 1,0,0);.......
http://blog.nobel-joergensen.com/2010/11/07/loading-a-png-as-texture-in-opengl-using-libpng/
TITLE : Carlo's Code: A Simple viewer in pyOpenGL
glRotatef( -zRotate, 0.0, 0.0, 1.0).......
http://carloluchessa.blogspot.com/2012/09/simple-viewer-in-pyopengl.html
TITLE : Carlo's Code: A Simple viewer in pyOpenGL
glRotatef( -xRotate, 1.0, 0.0, 0.0).......
http://carloluchessa.blogspot.com/2012/09/simple-viewer-in-pyopengl.html
TITLE : Carlo's Code: A Simple viewer in pyOpenGL
glRotatef( -yRotate, .0, 1.0, 0.0).......
http://carloluchessa.blogspot.com/2012/09/simple-viewer-in-pyopengl.html
TITLE : iPhone 3D Programming
glRotatef(m_currentAngle, 0, 0, 1);.......
http://chimera.labs.oreilly.com/books/1234000001814/ch02.html
TITLE : iPhone 3D Programming
glRotatef(shoulderAngle, 0, 0, 1);.......
http://chimera.labs.oreilly.com/books/1234000001814/ch02.html
TITLE : iPhone 3D Programming
glRotatef(elbowAngle, 0, 0, 1);.......
http://chimera.labs.oreilly.com/books/1234000001814/ch02.html
TITLE : iPhone 3D Programming
glRotatef(finger0Angle, 0, 0, 1);.......
http://chimera.labs.oreilly.com/books/1234000001814/ch02.html
TITLE : iPhone 3D Programming
glRotatef(-finger1Angle, 0, 0, 1);.......
http://chimera.labs.oreilly.com/books/1234000001814/ch02.html
TITLE : openglexamples
glRotatef(50, 1, 0, 0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef(70, 0, 1, 0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef(currentAngleOfRotation, 0.0, 0.0, 1.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef((GLfloat)shoulderAngle, 0.0, 0.0, 1.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef((GLfloat)elbowAngle, 0.0, 0.0, 1.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef(-90.0, 1.0, 0.0, 0.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef((GLfloat)year, 0.0, 1.0, 0.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef((GLfloat)day, 0.0, 1.0, 0.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef(-20.0, 1.0, 0.0, 0.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef(90.0, 1.0, 0.0, 0.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : openglexamples
glRotatef(270.0, 1.0, 0.0, 0.0);.......
http://cs.lmu.edu/~ray/notes/openglexamples/
TITLE : lecture_05
glRotatef(yang,1.0,1.0,0.0);.......
http://csclab.murraystate.edu/~bob.pilgrim/515/lectures_05.html
TITLE : lecture_05
glRotatef(xang,0.0,0.0,1.0);.......
http://csclab.murraystate.edu/~bob.pilgrim/515/lectures_05.html
TITLE : lecture_05
glRotatef(yang,1.0,1.0,0.0);.......
http://csclab.murraystate.edu/~bob.pilgrim/515/lectures_05.html
TITLE : lecture_05
glRotatef(xang,0.0,0.0,1.0);.......
http://csclab.murraystate.edu/~bob.pilgrim/515/lectures_05.html

glRotatef( anglex, 1.0, 0.0, 0.0); //rotate along x-axis.......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php

glRotatef( angley, 0.0, 1.0, 0.0); //rotate along y-axis .......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php

glRotatef( anglez, 0.0, 0.0, 1.0); //rotate along z-axis.......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php

glRotatef( 45, 1, 1, 1 );.......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php

glRotatef( anglex, 1.0, 0.0, 0.0); //rotate along x-axis.......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php

glRotatef( angley, 0.0, 1.0, 0.0); //rotate along y-axis .......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php

glRotatef( anglez, 0.0, 0.0, 1.0); //rotate along z-axis.......
http://cse.csusb.edu/tongyu/courses/cs520/notes/texture.php
search Google

https://www.google.com/#q=glRotatef