So I made a minimap to go along with my game, I would like to rotate the map along with the Y axis camera rotation (around itself, not 0, 0). Here is my code.
private void miniMap() {
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Color c = Color.white;
glColor4f(c.r, c.g, c.b, 0.5f);
glPushMatrix();
glTranslatef(-1, -1, -1);
glRotatef(rotation.y - 90, 0, 0, 1);
glTranslatef(1, 1, 1);
glBegin(GL_QUADS);
glVertex2i(10, 10);
glVertex2i(210, 10);
glVertex2i(210, 210);
glVertex2i(10, 210);
glEnd();
glPopMatrix();
glDisable(GL_BLEND);
}
I realize that I should translate the quad, then rotate it, then translate it back, I do not see a change when I perform this.