I am trying to move existing rectangle to other location.
It can be done using glLoadIdentity and glTranslatef.
But if there are 2-3 rectangles on the screen and only one of them is to be moved then what should be done?
If glLoadIdentity and glTranslatef are used then all rectangles get moved.
Please tell me how it can be done?