Java Examples for android.opengl.GLES10.glRotatef
The following java examples will help you to understand the usage of android.opengl.GLES10.glRotatef. These source code samples are taken from different open source projects.
Example 1
| Project: physics-toy-master File: GLCircle.java View source code |
public void draw(float x, float y, float angle) {
glPushMatrix();
glTranslatef(x, y, 0);
glRotatef((float) Math.toDegrees(angle), 0, 0, 1);
GLBufferTool.setGLVertexBuffer(2, fbVertices);
glDrawArrays(GL_TRIANGLE_FAN, 0, NUM_VERTICES);
glPopMatrix();
}