• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa and glutMainLoop()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Cocoa and glutMainLoop()? (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: Array operators (was: Custom canRemove binding)
  • Next by Date: Re: How can I change NSMenuItem font colors? - more info
  • Previous by thread: Re: Cocoa and glutMainLoop()?
  • Next by thread: NSPopupButton selectedObject binding grayed out
  • Index(es):
    • Date
    • Thread