drawing in another function

i have used glut for everything up until very recently and this has been bothering me. In carbon i do all of my drawing from the event loop function thing (sorry about not knowing the "correct terminology") and it works, but if i want to use that to call a bunch of things that do a lot of things its doesnt make sense to also draw form there. but if i call another function to do the drawing (from that event loop function thing) everything stops. i put a printf if the drawing function to make sure i was right and sure enough. it didn't do anything while the app was running. but when i quit it threw out everything.

so what i am wondering is: what is the agl equivilent to glutPostRedisplay() because that always did it for me. i did try aglPostRedisplay() but... yea.

also if anyone could throw a quick explanation of how to do double buffering in agl that would be cool

seagull.Draw_Bird(model);
from TheLoop() which was the event timer i installed above

but it never comes out so if i make a change which i did earlier it never gets updated i had a pretty good handle when i was doing c & glut but i really think c++ & agl is the way to go i just need a little help gettin there