View volume

Hi every one,
I am working on an application where i need to rotate a component which is laying over another component. That is There is already a compone tin the background and I want to ratate the component available at the front. If I Go for glViewport and select the are covered by the front component and try to ratate it, the portion of the component avaialable in the back also gets roatated. I’ve heard of View volume but not getting any link on it. Please send me any example link or some C code or any available article to it.
Thanks in advance

Show some code… Probably you’re applying the rotation to both objects and you should only apply it on the object that you want to rotate…

you may doing the job of rtation at


but it goes two time for rotation

you need glLoadIdentity();
at before another rotation
if your problem is similar like that