OpenGL ES: Translate a matrix to a particular point
Hi guys I am working on a app which requires the use of opengl es. However I have some questions. My task at hand is to rotate a matrix about an arbitrary point say (0,0,0). I did some research on google and the most common approach is 

1. translate the matrix to (0,0,0)
2. Rotate the matrix
3. Translate the matrix back to its original position

Effectively 

    glTranslatef(centerX, centerY, centerZ);
    glRotatef(angle, 0, 0, 1);
    glTranslatef(-centerX, -centerY, -centerZ);

However my problem is I am using opengl es 2.0. The function translatef does not exist in opengl es 2.0. I have a function called as translateBy but I am unable to figure out how to use translateBy function to translate my matrix to a certain point

Thanks any help would be appreciated.


OpenGL ES: Translate a matrix to a particular point
===

Hi guys I am working on a app which requires the use of opengl es. However I have some questions. My task at hand is to rotate a matrix about an arbitrary point say (0,0,0). I did some research on google and the most common approach is 

1. translate the matrix to (0,0,0)
2. Rotate the matrix
3. Translate the matrix back to its original position

Effectively 

    glTranslatef(centerX, centerY, centerZ);
    glRotatef(angle, 0, 0, 1);
    glTranslatef(-centerX, -centerY, -centerZ);

However my problem is I am using opengl es 2.0. The function translatef does not exist in opengl es 2.0. I have a function called as translateBy but I am unable to figure out how to use translateBy function to translate my matrix to a certain point

Thanks any help would be appreciated.

