glPushMatrix()
glTranslate(5,0,0)
glTranslate(10,0,0)
glTranslate(5,0,0)
# How do I get here total increment of x axis(which is 5+10+5=20) before I Pop up.
glPopMatrix()