Quote Originally Posted by tux
[code]
begin
{.. setup gl.. }

while not CanClose do
Begin
{.. render ..}
end;

{.. destroy gl.. }
end;//console closes here
Nope. glutMainLoop() does the loop, and calls the glutDisplayFunc() specified when it comes time to render. Conveinent, no? :)

Also: It seems that when I include glut32.dll in the same directory as the .exe, the console window closes when the OpenGL window closes. Otherwise, the console window remains active. Weirdness.