Re: Cocoa and glutMainLoop()?
Re: Cocoa and glutMainLoop()?
- Subject: Re: Cocoa and glutMainLoop()?
- From: Wade Tregaskis <email@hidden>
- Date: Thu, 6 May 2004 12:00:45 +1000
To use OpenGL for video, you have to use the glutMainLoop() function,
which does not return.
From within a Cocoa app, if I invoke glutMainLoop() in its own
thread, will it peacefully coexist or somehow interfere with the main
thread loop? Or is there a better way to use GLUT from within Cocoa?
Glut is an application framework in it's own right. As such it is
incompatible with Cocoa and you shouldn't try to use one within the
other. What are you trying to accomplish?
Newer versions of glut support glutMainOnce() or somesuch, which allows
you to use glut within Cocoa (or any other system). I can't recall if
Apple's does - check the header files. It's entirely undocumented in
any case, but I've seen in used in working programs.
Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.