nene
09-15-2003, 06:22 AM
Hi all,
Having some problem...
I am trying to create 4 different window to project a single object and one of the window have the object animating.
My problem is that if i tried to include the glIdleFunc() in the main under the animating program, all the rest of the window will callback the animating function when they are idle.
I have create another function to animate and draw this object within the push and pop of the matrix,
....................
glPushMatrix();
glTranslatef(-10.0,.0,-20.0);
glScalef(5.0,5.0,5.0);
glRotatef(angle, 1.0,1.0,0.0);
glTranslatef(10.0,.0,20.0);
display_wire_cube();
glPopMatrix();
.................
Can anyone help please?
Having some problem...
I am trying to create 4 different window to project a single object and one of the window have the object animating.
My problem is that if i tried to include the glIdleFunc() in the main under the animating program, all the rest of the window will callback the animating function when they are idle.
I have create another function to animate and draw this object within the push and pop of the matrix,
....................
glPushMatrix();
glTranslatef(-10.0,.0,-20.0);
glScalef(5.0,5.0,5.0);
glRotatef(angle, 1.0,1.0,0.0);
glTranslatef(10.0,.0,20.0);
display_wire_cube();
glPopMatrix();
.................
Can anyone help please?