
gl.glTranslatef(x, y, z);public void onDrawFrame(GL10 gl)

public void onDrawFrame(GL10 gl)
{
gl.glPushMatrix();
gl.glTranslatef(1.0f, 1.0f, -2.0f);
player.draw(gl); //Draw the square
gl.glPopMatrix();
}



Return to Android 2D/3D Graphics - OpenGL Problems
Users browsing this forum: No registered users and 2 guests